-
Notifications
You must be signed in to change notification settings - Fork 40.1k
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 bugs when copying deployment annotations to replicaSet if value is empty #94858
Conversation
Thanks for your pull request. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA). 📝 Please follow instructions at https://git.k8s.io/community/CLA.md#the-contributor-license-agreement to sign the CLA. It may take a couple minutes for the CLA signature to be fully registered; after that, please reply here with a new comment and we'll verify. Thanks.
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/test-infra repository. I understand the commands that are listed here. |
Hi @waynepeking348. Thanks for your PR. I'm waiting for a kubernetes member to verify that this patch is reasonable to test. If it is, they should reply with Once the patch is verified, the new status will be reflected by the I understand the commands that are listed here. 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/test-infra repository. |
6cee373
to
563b861
Compare
/assign deads2k sig-apps-reviewers cheftako |
@waynepeking348: GitHub didn't allow me to assign the following users: sig-apps-reviewers. Note that only kubernetes members, repo collaborators and people who have commented on this issue/PR can be assigned. Additionally, issues/PRs can only have 10 assignees at the same time. In response to this:
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/test-infra repository. |
/ok-to-test |
The fix looks correct to me. However I'm a little worried about backward compatibility. Just because no one should have been relying on this behavior doesn't mean they aren't. At a minimum we should probably have a release note for this change. Interested to hear @deads2k thoughts. |
/test pull-kubernetes-bazel-test |
according to current logic, deployment will copy those annotations to the latest replicaSet, it won't affect others; I also think a release note is reasonable. would you please have a look at this fix @deads2k ? |
563b861
to
6c36a48
Compare
/retest |
any thought /assign @cheftako
any thought? /assign @cheftako |
/lgtm |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: cheftako, waynepeking348 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 |
@waynepeking348 , @cheftako , @deads2k : BTW, where is it documented that the |
What type of PR is this?
/kind bug
What this PR does / why we need it:
In our production environment, we relay on annotations to identify deployment with certain types; in some cases, we may set the annotation value with empty string, which may lead to unexpected problems if a rollout action is trigged.
deployment.test.kubernetes.io: ""
; replicaSet1 will not copy this key from deployment since map (in Golang) will return empty string if the given key doesn't exist (just as this belong logic)deployment.test.kubernetes.io
), then this deployment is unexpected because it lost the identification in its annotations.Which issue(s) this PR fixes:
Fixes #
Does this PR introduce a user-facing change?: