-
Notifications
You must be signed in to change notification settings - Fork 40.9k
delete one key per delete directive in strategicPatch #92437
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
attempts to address kubernetes#58477 by only deleting one element per directive
Welcome @sweeneyb! |
Hi @sweeneyb. 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. |
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: sweeneyb The full list of commands accepted by this bot can be found here.
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
/assign @mengqiy |
/ok-to-test |
/retest |
1 similar comment
/retest |
@sweeneyb Looks like some of the failures are unrelated to this PR. I'm having a look at what is going on. |
@cblecker thanks. I'll defer retests until tomorrow or I hear something. I can see one test dying being spurious. But it's failed a couple of times now. I don't want to put load on the CI unnecessarily. |
/retest |
The above failure is legitimate. You need to run |
/retest |
/retest |
1 similar comment
/retest |
@sweeneyb: The following test failed, say
Full PR test history. Your PR dashboard. Please help us cut down on flakes by linking to an open issue when you hit one in your PR. 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. |
this status is also the relevant one for knowing what is overall required (it could be more obvious...), this PR won't merge until approved and lgtm-ed, but it's already good on the tests. tide is the kubernetes merge robot. |
@BenTheElder Thanks for the context. It is pretty obvious in retrospect. There's a lot new, here, so I'm learning where to look in a lot of ways. Thanks again. |
FWIW I think it's a lot and not anywhere near as obvious as it should be. |
This PR changes the behavior of delete directive The later approach doesn't solve all of the problems.
If the user wants to remove
there is no great way to express that. I'm not sure if the new behavior is better than the existing behavior. Some background: |
Issues go stale after 90d of inactivity. If this issue is safe to close now please do so with Send feedback to sig-testing, kubernetes/test-infra and/or fejta. |
Stale issues rot after 30d of inactivity. If this issue is safe to close now please do so with Send feedback to sig-testing, kubernetes/test-infra and/or fejta. |
Rotten issues close after 30d of inactivity. Send feedback to sig-testing, kubernetes/test-infra and/or fejta. |
@fejta-bot: Closed this PR. 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. |
maybe we can delete last one, rather than the first one. Because when dulplicate envs exist, the first one is active. |
attempts to address #58477 by only deleting one element per directive
What type of PR is this?
/kind bug
What this PR does / why we need it:
A patch to delete an accidental duplicate key in a resource definition ends up deleting all of the keys. This requires a workaround where a person removes all of the keys, then adds one of them back. Instead, the merged resource definition should reflect what was submitted into the system.
Which issue(s) this PR fixes:
Fixes #58477
Special notes for your reviewer:
Does this PR introduce a user-facing change?:
Additional documentation e.g., KEPs (Kubernetes Enhancement Proposals), usage docs, etc.: