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

Enhance MirrorPeer and S3 Secret Handling and other bug fixes #239

Merged
merged 1 commit into from
Nov 21, 2024

Conversation

vbnrh
Copy link
Member

@vbnrh vbnrh commented Nov 18, 2024

  • Updated MirrorPeerReconciler to accurately handle storage client references and added deleteMirrorPeer conditional to account for provider mode.
  • Introduced annotation support in ObjectBucketClaim for dynamic setting based on MirrorPeer type.
  • Added new constants and enums for OBC types and annotations to enhance readability and standardize key usage.
  • Enhanced S3 secret synchronization logic to differentiate between client and cluster references, fetching relevant storage cluster info per context.
  • Refined ConfigMap client information updates with new GetKey helper and corrected test cases for compatibility.
  • Implemented FetchMirrorPeerByName for efficient MirrorPeer retrieval by name.
  • Modified utility methods for secret and config map creation to handle namespace variations, ensuring correct retrieval in provider-client contexts.
  • Refactored validation and utility methods for enhanced error handling and consistent namespace management.

addons/s3_controller.go Outdated Show resolved Hide resolved
addons/s3_controller.go Outdated Show resolved Hide resolved
- Updated MirrorPeerReconciler to accurately handle storage client references and added deleteMirrorPeer conditional to account for provider mode.
- Introduced annotation support in ObjectBucketClaim for dynamic setting based on MirrorPeer type.
- Added new constants and enums for OBC types and annotations to enhance readability and standardize key usage.
- Enhanced S3 secret synchronization logic to differentiate between client and cluster references, fetching relevant storage cluster info per context.
- Refined ConfigMap client information updates with new GetKey helper and corrected test cases for compatibility.
- Implemented FetchMirrorPeerByName for efficient MirrorPeer retrieval by name.
- Modified utility methods for secret and config map creation to handle namespace variations, ensuring correct retrieval in provider-client contexts.
- Refactored validation and utility methods for enhanced error handling and consistent namespace management.

Signed-off-by: vbadrina <[email protected]>
@vbnrh vbnrh force-pushed the fix-mcv-controller branch from 3b6c8be to a3f1f26 Compare November 20, 2024 12:06
@rewantsoni
Copy link
Member

Tested the build on the cluster and everything looks good,

  • s3 buckets are created and secrets are propagated
  • storageclusterpeer is created
  • storage-client-mapping is created
  • ramen config is updated

/lgtm
/hold for @umangachapagain

@umangachapagain
Copy link
Contributor

/unhold

Copy link
Contributor

openshift-ci bot commented Nov 21, 2024

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: umangachapagain, 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:
  • OWNERS [umangachapagain,vbnrh]

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

@openshift-merge-bot openshift-merge-bot bot merged commit 17353b7 into red-hat-storage:main Nov 21, 2024
11 checks passed
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.

3 participants