Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Mirrorpeer reconciler modularization #223

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

vbnrh
Copy link
Member

@vbnrh vbnrh commented Jul 12, 2024

  • Introduced MirrorPeerReconcileTask type for modular reconciliation tasks.
    • Separated and modularized various reconciliation functions:
      • processMirrorPeerDeletion
      • ValidateMirrorPeer
      • AddLabels
      • UpdateMirrorPeerPhase
      • processManagedClusterAddon
      • createClusterRoleBindingsForSpoke
      • processMirrorPeerSecretChanges
      • createDRClusters
      • updateMirrorPeerStatus
    • Separated and modularized various reconciliations functions for agent controller and conditionally
      adding tasks for Async mode
      • processMirrorPeerDeletion
      • createS3
      • labelCephClusters
      • enableCSIAddons
      • enableMirroring
      • labelRBDStorageClasses
    • Enhanced logging for better traceability and debugging.
    • Improved error handling, ensuring appropriate actions on errors like conflicts and not found cases.

vbnrh added 2 commits July 12, 2024 19:05
  - Updated OCS-Operator API import path to `github.com/red-hat-storage/ocs-operator/api/v4/v1`.
  - Adjusted import paths in various files:
    - `addons/agent_mirrorpeer_controller.go`
    - `addons/agent_mirrorpeer_controller_test.go`
    - `addons/blue_secret_controller_test.go`
    - `addons/green_secret_controller_test.go`
    - `addons/maintenance_mode_controller.go`
    - `addons/manager.go`
    - `addons/rook_secret_handler.go`
    - `addons/s3_controller_test.go`
    - `api/v1alpha1/mirrorpeer_types.go`
    - `api/v1alpha1/mirrorpeer_webhook.go`
    - `api/v1alpha1/zz_generated.deepcopy.go`
    - `controllers/drpolicy_controller.go`
    - `controllers/mirrorpeer_controller.go`
    - `controllers/mirrorpeer_controller_test.go`
    - `controllers/utils/cluster.go`
  - Updated `go.mod` and `go.sum` to reflect the new OCS-Operator API version.

Signed-off-by: vbadrina <[email protected]>
  - Introduced `MirrorPeerReconcileTask` type for modular reconciliation tasks.
  - Separated and modularized various reconciliation functions:
    - `processMirrorPeerDeletion`
    - `ValidateMirrorPeer`
    - `AddLabels`
    - `UpdateMirrorPeerPhase`
    - `processManagedClusterAddon`
    - `createClusterRoleBindingsForSpoke`
    - `processMirrorPeerSecretChanges`
    - `createDRClusters`
    - `updateMirrorPeerStatus`
  - Separated and modularized various reconciliations functions for agent controller and conditionally
    adding tasks for Async mode
    - `processMirrorPeerDeletion`
    - `createS3`
    - `labelCephClusters`
    - `enableCSIAddons`
    - `enableMirroring`
    - `labelRBDStorageClasses`
  - Enhanced logging for better traceability and debugging.
  - Improved error handling, ensuring appropriate actions on errors like conflicts and not found cases.

Signed-off-by: vbadrina <[email protected]>
Copy link
Contributor

openshift-ci bot commented Jul 12, 2024

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: vbnrh

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@openshift-merge-robot
Copy link
Contributor

PR needs rebase.

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants