-
Notifications
You must be signed in to change notification settings - Fork 917
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
fix: prune deployment revision annotation #4946
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
❗ Your organization needs to install the Codecov GitHub app to enable full functionality. Additional details and impacted files@@ Coverage Diff @@
## master #4946 +/- ##
==========================================
- Coverage 53.32% 53.31% -0.01%
==========================================
Files 252 252
Lines 20485 20489 +4
==========================================
+ Hits 10923 10924 +1
- Misses 8841 8844 +3
Partials 721 721
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
Do you mean you promoted a Deployment resource from the member cluster, which has the annotation |
Previous view: Can we put the conflicts caused by controllers that are not enabled into the new hook point?
Based on this, new view: For Kubernetes native resources, we can put it into the default behavior. |
That's correct!
Retain or Prune will work here. With Retain, we'll just get an extra Update after first creation but ignored after that. Given it's kubernetes native annotation, I think it makes sense to make it a default behavior but will defer to you all. |
+1 |
@a7i Can you help to rebase this PR and resolve the conflicts? |
Signed-off-by: Amir Alavi <[email protected]>
1a86e32
to
3dfa5b5
Compare
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
/approve
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: RainbowMango 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 |
What type of PR is this?
/kind bug
What this PR does / why we need it:
We noticed that karmada and member cluster controller-manager are fighting against each other where we get over 6k updates for a single deployment per hour.
the culprit seems to be the revision annotation.
Which issue(s) this PR fixes:
Fixes #
Special notes for your reviewer:
while generally the karmdaa setup doesn't run the Deployment controller on the karmada-apiserver, it does support promoting resources which can lead to having these annotations cause a diff with the member cluster(s).
Does this PR introduce a user-facing change?: