Skip to content

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
@dgkanatsios dgkanatsios requested review from AmieDD and khaines January 26, 2022 23:32
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