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

adding ResourceVersion in deletes #152

Merged
merged 1 commit into from
Jan 31, 2022
Merged

adding ResourceVersion in deletes #152

merged 1 commit into from
Jan 31, 2022

Conversation

dgkanatsios
Copy link
Collaborator

When deleting a GameServer in cases of reduced StandingBy, we checked the cache for Initializing or StandingBy servers. However, there is a chance that the cache might have not been updated so we could delete GameServers that have been transitioned to Active. This PR updates the DELETE API Call to check for the ResourceVersion of the GameServer to be deleted. The ResourceVersion changes if the object is updated (either in .Spec or in .Status) so this change will return 409 (Conflict) if this is the case.

@dgkanatsios dgkanatsios added this to the 0.3.0 milestone Jan 26, 2022
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.

This is a good find and correction!

@dgkanatsios dgkanatsios merged commit d21a1ef into master Jan 31, 2022
@dgkanatsios dgkanatsios deleted the rvondeletes branch January 31, 2022 17:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants