-
Notifications
You must be signed in to change notification settings - Fork 905
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 wrong annotation marks on resource #4751
fix wrong annotation marks on resource #4751
Conversation
Signed-off-by: changzhen <changzhen5@huawei.com>
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.
Good finding!
/lgtm
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.
/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 |
…k-of-#4751-upstream-release-1.7 Automated cherry pick of #4751: fix wrong annotation marks on resource
…k-of-#4751-upstream-release-1.8 Automated cherry pick of #4751: fix wrong annotation marks on resource
…k-of-#4751-upstream-release-1.9 Automated cherry pick of #4751: fix wrong annotation marks on resource
What type of PR is this?
/kind bug
What this PR does / why we need it:
Using the
MergeAnnotation
function will filter out existing keys. When the key value that needs to be marked changes, such as policy preemption, resource recovery, we need to use theReplaceAnnotation
function to replace the value of the key in the annotation.Which issue(s) this PR fixes:
Fixes #
Special notes for your reviewer:
Does this PR introduce a user-facing change?: