-
Couldn't load subscription status.
- Fork 71
Add test to verify that apply after update should work with no conflict #210
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
|
Welcome @redbaron! |
|
Hi @redbaron. Thanks for your PR. I'm waiting for a kubernetes-sigs 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: redbaron 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 |
|
The Kubernetes project currently lacks enough 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 stale |
|
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 |
|
/remove-lifecycle rotten |
|
/ok-to-test That test should fail right? |
No, it should succeed |
|
Can you explain your rational? |
|
Sorry, I was in a meeting when I wrote that. Apply and Update have been implemented/designed as being incompatible because they don't have the same mechanisms of owning fields, which means that they can't be converted from one to another. I don't understand how this test passes. |
|
As described in the kubernetes/kubernetes#107417 Apply and Update are deliberately made incompatible in kube apiserver, which I didn't agree with. This test case demonstrates that, for the structured merge purposes these operations are not in conflict same field manager can use both without introducing conflict with it's own doings. Kubernetes Apiserver introduces conflict between Apply and Update by adding operation name to the field manager string. So it is a higher level decision. Low level structured merging (which is this repo) is fully supporting both, hence this test. |
|
Ah yeah, you're right, smd doesn't differentiate and just overrides everything. Why don't you add more tests here to verify that the behavior would work as you expect? You can maybe convince me that this would be better? |
|
The Kubernetes project currently lacks enough 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 stale |
|
/remove-lifecycle stale |
|
The Kubernetes project currently lacks enough 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 stale |
|
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 |
|
I don't know what to do with this, I think we know this is how it works, but we don't rely on this behavior so I don't want to enforce that we keep it forever. |
|
@apelisse: 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. |
While investigating kubernetes/kubernetes#107417 , I found that at least at the level of structured merge diff,
Applydoesn't cause conflict withUpdateif manager name is the same. This PR adds test for it.