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

replacing update with patch on pod annotations #103

Merged
merged 1 commit into from
Dec 13, 2021
Merged

Conversation

dgkanatsios
Copy link
Collaborator

This PR updates the GameServerController code with .Patch instead of .Update for adding Pod SafeToEvict annotations. Draft till we make sure that this Patch code is the best.
It was discovered from here https://sdk.operatorframework.io/docs/building-operators/golang/references/client/#patch, we should make sure that there's no more performant way than using Pod.DeepCopy.

@dgkanatsios dgkanatsios marked this pull request as ready for review December 11, 2021 21:02
Copy link
Collaborator

@khaines khaines left a comment

Choose a reason for hiding this comment

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

LGTM! Thanks for chasing this one down

@dgkanatsios dgkanatsios merged commit 0764a0d into master Dec 13, 2021
@dgkanatsios dgkanatsios deleted the patchsafetoevict branch December 13, 2021 23:02
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.

2 participants