-
Notifications
You must be signed in to change notification settings - Fork 9
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
feat: support skip syncing matrixonecluster cr #562
Conversation
PR-Agent was enabled for this repository. To continue using it, please link your git user with your CodiumAI identity here. PR Reviewer Guide 🔍Here are some key observations to aid the review process:
|
PR-Agent was enabled for this repository. To continue using it, please link your git user with your CodiumAI identity here. PR Code Suggestions ✨Explore these optional code suggestions:
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm
User description
What type of PR is this?
Which issue(s) this PR fixes:
Fixes # https://github.com/matrixorigin/MO-Cloud/issues/4074
What this PR does / why we need it:
some MatrixoneCluster CRs should skip sync for some reason, like debug or migrate MatrixoneCluster CR subresource management to other controllers. if matrixonecluster cr has annotation
matrixorigin.io/skip-sync
, operator controller will skip sync crSpecial notes for your reviewer:
Not Available
Additional documentation (e.g. design docs, usage docs, etc.):
Not Available
PR Type
enhancement
Description
matrixorigin.io/skip-sync
to allow skipping the synchronization of MatrixOneCluster custom resources.Observe
andFinalize
methods in theMatrixOneClusterActor
to check for the skip-sync annotation and bypass operations if present.Changes walkthrough 📝
controller.go
Add support for skipping sync of MatrixOneCluster CR
pkg/controllers/mocluster/controller.go
matrixorigin.io/skip-sync
to control skippingsync.
present.