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

Allow gameservers to not have port #598

Merged
merged 1 commit into from
Sep 20, 2022
Merged

Allow gameservers to not have port #598

merged 1 commit into from
Sep 20, 2022

Conversation

XAMPPRocky
Copy link
Collaborator

When gameservers are deleted, their port is removed. This fixes it so that the gameserver will have a port of zero instead of returning an error.

When gameservers are deleted, their port is removed. This fixes it so that the gameserver will have a port of zero instead of returning an error.
@XAMPPRocky XAMPPRocky changed the title Allow missing gameservers to not have port Allow gameservers to not have port Sep 20, 2022
@markmandel
Copy link
Member

🤔 on deletion I don't think we remove anything from the status part of the GameServer CRD (there's no reason to) in Agones. I should go double check though.

I wonder what is causing Quilkin to see this.

@quilkin-bot
Copy link
Collaborator

Build Succeeded 🥳

Build Id: 80d5b952-8970-4406-be72-01df960c11dc

To build this version:

git fetch git@github.com:googleforgames/quilkin.git pull/598/head:pr_598 && git checkout pr_598
cargo build

@markmandel
Copy link
Member

So double checked:

On shutdown we don't remove anything on Agones:

https://github.com/googleforgames/agones/blob/a980e896da9ba73b4a52f4a99754dc479a0b95cb/pkg/gameservers/controller.go#L869-L883

When we find a deletion timestamp we don't remove anything either:

https://github.com/googleforgames/agones/blob/a980e896da9ba73b4a52f4a99754dc479a0b95cb/pkg/gameservers/controller.go#L413-L452

So not sure what's causing this in the CRD, but it might be on the Quilkin side. Would be worth investigating.

@XAMPPRocky
Copy link
Collaborator Author

@markmandel Interesting, it doesn't happen all the time, it happens some of the time, I'll log the output and post here.

@markmandel
Copy link
Member

Sounds good. Let's merge this though!

@markmandel markmandel merged commit 8598229 into main Sep 20, 2022
@markmandel markmandel deleted the XAMPPRocky-patch-1 branch September 20, 2022 16:19
@markmandel
Copy link
Member

Figure it would be good to have a fix in, and then we can also look to a potentially better solution over time.

XAMPPRocky added a commit that referenced this pull request Oct 10, 2022
When gameservers are deleted, their port is removed. This fixes it so that the gameserver will have a port of zero instead of returning an error.
XAMPPRocky added a commit that referenced this pull request Oct 10, 2022
When gameservers are deleted, their port is removed. This fixes it so that the gameserver will have a port of zero instead of returning an error.
@markmandel markmandel added kind/bug Something isn't working area/user-experience Pertaining to developers trying to use Quilkin, e.g. cli interface, configuration, etc area/xds Related to Envoy xDS labels Nov 11, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/user-experience Pertaining to developers trying to use Quilkin, e.g. cli interface, configuration, etc area/xds Related to Envoy xDS kind/bug Something isn't working size/xs
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants