Skip to content
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: 🐛 fix missed fieldManager field #48

Merged
merged 1 commit into from
Aug 15, 2024

Conversation

self-transition
Copy link
Member

@self-transition self-transition commented Aug 14, 2024

In the past kube api implementations, the fieldManager field was only added when applying yaml. The fieldManager field was omitted when patching and putting json.

If there is no fieldManager, the API server infers a field manager identity from the "User-Agent:" HTTP header (if present).

This will result in the same field being managed by multiple UI client managers, which will result in a failure to remove the field via the client side patch

https://kubernetes.io/docs/reference/using-api/server-side-apply/#managers

@self-transition self-transition added the bug Something isn't working label Aug 14, 2024
Copy link

@huangjunjia huangjunjia left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@self-transition self-transition merged commit 5b10be6 into main Aug 15, 2024
1 check passed
@self-transition self-transition deleted the xingyu/fix_field_manager branch August 15, 2024 05:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants