-
Notifications
You must be signed in to change notification settings - Fork 42k
Merge patches to ImagePullSecrets for Service Accounts #91256
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
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.
DetailsInstructions 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. |
|
Welcome @Jamstah! |
|
Hi @Jamstah. 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. DetailsInstructions 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. |
|
This PR may require API review. If so, when the changes are ready, complete the pre-review checklist and request an API review. Status of requested reviews is tracked in the API Review project. |
|
@jennybuckley Can you double check, is this an API change that we have to worry about? |
|
/sig api-machinery |
|
/assign @jpbetz Is this fine? :-p |
This looks like an example of a atomic->granular schema change I'm working to support as part of kubernetes-sigs/structured-merge-diff#170 Until we get the fix into k8s, making the schema change will result in server side apply reading managed field data written before the schema change and then mis-interpreting it. For this specific schema change, I expect it will fail to detect conflicts on the first apply after an upgrade, and for HA clusters, it will also fail to detect conflicts on some applies during upgrade. Same thing for rollback. The best thing might be to hold this fix until kubernetes-sigs/structured-merge-diff#170 is resolved and merged into k8s, which I'd like to get in for 1.20. |
|
/lgtm This looks right. |
|
Issues go stale after 90d of inactivity. If this issue is safe to close now please do so with Send feedback to sig-contributor-experience at kubernetes/community. |
|
New changes are detected. LGTM label has been removed. |
|
/remove-lifecycle stale rebased. |
|
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: Jamstah The full list of commands accepted by this bot can be found here. DetailsNeeds approval from an approver in each of these files:Approvers can indicate their approval by writing |
|
if this changes the API behavior of a |
I had that concern but haven't seen a good answer. The original issue rotted (#91250) - should I repoen that as well or is the pr enough? |
| // +listType=map | ||
| // +listMapKey=name |
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.
this addition makes server-side-apply (which is beta prior to 1.22) consistent with client-side-apply and seems reasonable
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.
To be honest, we already infer listType and listMapKey if patchMergeKey and patchStrategy is present, so this is mostly a no-op, but yes, it's fine.
| // +listType=map | ||
| // +listMapKey=name |
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.
adding server-side-apply directives here makes this field consistent with podSpec.ImagePullSecrets and seems reasonable since ssa was beta prior to 1.22
| // +patchMergeKey=name | ||
| // +patchStrategy=merge |
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.
This addition is the bit that is incompatible with GA API functionality and needs more consideration, since it will break clients computing strategic merge patches using older versions of k8s.io/api types
|
Am also still interested in an answer to this question:
|
|
We've done all the clean-up already (presumably of course), thanks! |
|
Issues go stale after 90d of inactivity. If this issue is safe to close now please do so with Send feedback to sig-contributor-experience at kubernetes/community. |
|
The Kubernetes project currently lacks enough active contributors to adequately respond to all issues and PRs. This bot triages issues and PRs according to the following rules:
You can:
Please send feedback to sig-contributor-experience at kubernetes/community. /lifecycle rotten |
|
The Kubernetes project currently lacks enough active contributors to adequately respond to all issues and PRs. This bot triages issues and PRs according to the following rules:
You can:
Please send feedback to sig-contributor-experience at kubernetes/community. /close |
|
@k8s-triage-robot: Closed this PR. DetailsIn 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. |
What type of PR is this?
/kind feature
What this PR does / why we need it:
Adds the merge strategy to imagePullSecrets in the ServiceAccount API
Which issue(s) this PR fixes:
Fixes #91250
Special notes for your reviewer:
Does this PR introduce a user-facing change?:
Additional documentation e.g., KEPs (Kubernetes Enhancement Proposals), usage docs, etc.: