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 null ports and address fields in GameServer CRD #942

Closed
wants to merge 3 commits into from

Conversation

XAMPPRocky
Copy link
Collaborator

No description provided.

@XAMPPRocky XAMPPRocky enabled auto-merge (squash) May 7, 2024 13:03
@quilkin-bot
Copy link
Collaborator

Build Failed 😭

Build Id: 44259278-4a67-40c7-a6fd-58c56f191957

Status: FAILURE

To get permission to view the Cloud Build view, join the quilkin-discuss Google Group.

Filter with the Git Commit 795662a within us-docker.pkg.dev/quilkin/ci//quilkin to see if a development image is available from this build, and can be used for debugging purposes.

Development images are retained for at least 30 days.

Copy link
Contributor

@markmandel markmandel left a comment

Choose a reason for hiding this comment

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

Thank you! I was in the process of upgrading the Agones test infra, and ran into the same thing 👍🏻

@XAMPPRocky
Copy link
Collaborator Author

It seems like the test infra is failing though 🧐 does it need to be upgraded at the same time?

@markmandel
Copy link
Contributor

markmandel commented May 7, 2024

It seems like the test infra is failing though 🧐 does it need to be upgraded at the same time?

Oh! Maybe!

I wonder if that older version of Agones even had the "addresses" field. It's quite possible it didn't - it's quite old.

So two options:

  1. We make deserialize_null_default code handle fields it can't find any data for.
  2. I can pull this code into the Agones upgrade I'm working on right now.

No. 1 wouldn't be bad to have, but also happy to do No 2., since the test infra is running Agones 1.33, which is almost a year old.

@XAMPPRocky
Copy link
Collaborator Author

I'd prefer No. 2, I can use the image in the mean time.

@markmandel
Copy link
Contributor

I'd prefer No. 2, I can use the image in the mean time.

I also can't find a good way to even check that the field data is missing 🤔 I'm not sure how #[serde(default)] does this.

The error that comes back from let opt = Option::deserialize(deserializer)?; is from https://docs.rs/serde/1.0.200/serde/de/trait.Error.html#method.missing_field and all errors are Trait serde::de::Error 🤔 so you can't differentiate without looking at the text of the error string.

@markmandel
Copy link
Contributor

Confirmed - combining your change with the Agones update passes locally! Will submit a combined PR, and update the cluster.

@XAMPPRocky XAMPPRocky closed this May 8, 2024
auto-merge was automatically disabled May 8, 2024 07:00

Pull request was closed

@markmandel markmandel deleted the ep/allow-null-fields branch May 8, 2024 19:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants