-
Notifications
You must be signed in to change notification settings - Fork 38.7k
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
Update sigs.k8s.io/structured-merge-diff to v4.4.0 #121575
Conversation
thanks @apelisse ! we had to jump through hoops in #113482 (comment) glad this is sorted out. /approve |
Fixed the linting issue. |
/triage accepted |
/lgtm I ran a modified version of the integration test (which puts the new possibilities for managedFields directly into etcd and then exercises update and apply requests) against master before this PR merges to ensure an old server doing an update of an object containing managedFields like this still works (it does, and still drops the managed fields), and an old server doing an apply of an object containing duplicates and managedFields like this does not fail worse (it doesn't, the apply still fails but only the immediate request fails). |
LGTM label has been added. Git tree hash: c97c9afaa9529b0b6ab52ccee328629e6f76f3fd
|
Thanks for the dilligence Jordan! |
|
The failure modes I know of are eliminated. Updated the release note.
|
Do we need to explain the actual impact to managed fields? |
I don't think so, that's pretty inside baseball to kube-apiserver |
"[SHOULD NOT HAPPEN] failed to update managedFields" err=<
|
On the new apiserver the "create" operation logged:
On the SSA operation (note there's no change in the file) it logged:
|
You still can't server-side apply duplicates. I was re-reading Jordan's note and it doesn't mention that, maybe worth adding:
|
Apparently I screwed up my rebase and didn't have this change. Let me try again |
As my teenager would say... "my bad" |
I do still get logs:
|
Something/someone is sending a patch with duplicates. That's literally trying to parse the server-side applied object. |
yeah, you can't SSA duplicate items, but you can SSA to objects which have duplicate items added via create or update calls |
What type of PR is this?
/kind bug
/kind feature
It's a feature that solves a bug ...
What this PR does / why we need it:
Which issue(s) this PR fixes:
Fixes #113482
Special notes for your reviewer:
Does this PR introduce a user-facing change?
We probably need something here, not sure how to phrase it yet.
Additional documentation e.g., KEPs (Kubernetes Enhancement Proposals), usage docs, etc.: