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

controllers: use client.Patch for finalizers mutations instead of Update #950

Merged
merged 1 commit into from
May 7, 2024

Conversation

f41gh7
Copy link
Collaborator

@f41gh7 f41gh7 commented May 7, 2024

It must possible issues with JSON marshalling mutations and remove default values setting for CRD object.

Previously, it was possible, that object was modified during unmarshalling, it causes object mutation after client.Update call. Since object state wasn't restored to the original version after marshalling.

#946

It must possible issues with JSON marshalling mutations and remove default values setting for CRD object.

Previously, it was possible, that object was modified during unmarshalling, it causes object mutation after client.Update call. Since object state wasn't restored to the original version after marshalling.

#946
@f41gh7 f41gh7 requested review from Amper and Haleygo as code owners May 7, 2024 14:57
@f41gh7 f41gh7 merged commit 438afdd into master May 7, 2024
2 checks passed
@f41gh7 f41gh7 deleted the gh-946 branch May 7, 2024 15:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant