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

Adds default values for Counters and Lists fields #2983

Merged
merged 3 commits into from
Feb 27, 2023

Conversation

igooch
Copy link
Collaborator

@igooch igooch commented Feb 21, 2023

What type of PR is this?
/kind feature

What this PR does / Why we need it:
Adds default values for Counters and Lists fields.
Populates initial GamerServerStatus for Counters and Lists from the GameServerSpec.
Removes remaining references to featureGates in CRDs (these fields are validated in the validate function).

Which issue(s) this PR fixes:
Working on #2716

Special notes for your reviewer:

@agones-bot
Copy link
Collaborator

Build Failed 😱

Build Id: 14932a2a-bc27-41d4-9d74-13065881caf2

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

@igooch igooch force-pushed the arbitrary-counts-lists-2716 branch from 08bc9ca to f1120ff Compare February 21, 2023 22:02
@google-oss-prow google-oss-prow bot added size/L and removed size/XXL labels Feb 21, 2023
@agones-bot
Copy link
Collaborator

Build Failed 😱

Build Id: ae7acbf5-ffd2-4af5-9fc5-d92617e0d9c6

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

@igooch igooch force-pushed the arbitrary-counts-lists-2716 branch from f1120ff to a547aba Compare February 21, 2023 22:09
@agones-bot
Copy link
Collaborator

Build Failed 😱

Build Id: 49452c21-942b-4ac7-a694-ef3a23bd537d

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

@agones-bot
Copy link
Collaborator

Build Succeeded 👏

Build Id: 56a26205-8ed2-47ab-8fae-3037847e9cd1

The following development artifacts have been built, and will exist for the next 30 days:

A preview of the website (the last 30 builds are retained):

To install this version:

  • git fetch https://github.com/googleforgames/agones.git pull/2983/head:pr_2983 && git checkout pr_2983
  • helm install agones ./install/helm/agones --namespace agones-system --agones.image.release=us-docker.pkg.dev/agones-images/ci --set agones.image.tag=1.30.0-a547aba-amd64

@igooch igooch changed the title Arbitrary counts lists 2716 Arbitrary counts lists 2716/Defaults Feb 22, 2023
@igooch igooch force-pushed the arbitrary-counts-lists-2716 branch 2 times, most recently from 350176a to 3db7aae Compare February 22, 2023 22:40
@agones-bot
Copy link
Collaborator

Build Failed 😱

Build Id: 85eebc7f-372d-45d1-94e8-3a382918aae6

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

@igooch igooch force-pushed the arbitrary-counts-lists-2716 branch from 3db7aae to b881ee3 Compare February 22, 2023 23:10
@google-oss-prow google-oss-prow bot added size/XXL and removed size/L labels Feb 22, 2023
@markmandel markmandel added kind/feature New features for Agones area/user-experience Pertaining to developers trying to use Agones, e.g. SDK, installation, etc labels Feb 23, 2023
@agones-bot
Copy link
Collaborator

Build Succeeded 👏

Build Id: 67b0af3c-a5d7-4d09-9cbc-4f1b900b8a08

The following development artifacts have been built, and will exist for the next 30 days:

A preview of the website (the last 30 builds are retained):

To install this version:

  • git fetch https://github.com/googleforgames/agones.git pull/2983/head:pr_2983 && git checkout pr_2983
  • helm install agones ./install/helm/agones --namespace agones-system --agones.image.release=us-docker.pkg.dev/agones-images/ci --set agones.image.tag=1.30.0-350176a-amd64

@agones-bot
Copy link
Collaborator

Build Succeeded 👏

Build Id: d661db47-d229-4369-99fc-ece1f460f0cc

The following development artifacts have been built, and will exist for the next 30 days:

A preview of the website (the last 30 builds are retained):

To install this version:

  • git fetch https://github.com/googleforgames/agones.git pull/2983/head:pr_2983 && git checkout pr_2983
  • helm install agones ./install/helm/agones --namespace agones-system --agones.image.release=us-docker.pkg.dev/agones-images/ci --set agones.image.tag=1.30.0-b881ee3-amd64

Copy link
Collaborator

@gongmax gongmax left a comment

Choose a reason for hiding this comment

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

LGTM

@agones-bot
Copy link
Collaborator

Build Succeeded 👏

Build Id: 25539f75-d78f-480e-8de2-0f3521841cb8

The following development artifacts have been built, and will exist for the next 30 days:

A preview of the website (the last 30 builds are retained):

To install this version:

  • git fetch https://github.com/googleforgames/agones.git pull/2983/head:pr_2983 && git checkout pr_2983
  • helm install agones ./install/helm/agones --namespace agones-system --agones.image.release=us-docker.pkg.dev/agones-images/ci --set agones.image.tag=1.30.0-142c097-amd64

pkg/apis/agones/v1/gameserver.go Outdated Show resolved Hide resolved
@@ -311,6 +304,18 @@ type PlayerStatus struct {
IDs []string `json:"ids"`
}

// CounterStatus stores the current counter values
type CounterStatus struct {
Copy link
Member

Choose a reason for hiding this comment

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

Since it's used in both Spec and Status, maybe the names should be Counter and List ? WDYT?

Copy link
Member

@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.

Just marking as request changes, since I'd like to get my comments reviewed before merging.

@agones-bot
Copy link
Collaborator

Build Failed 😱

Build Id: d2d98834-d3ff-48bd-9f2b-347d5cb9b778

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

@igooch igooch force-pushed the arbitrary-counts-lists-2716 branch from 392ac06 to 8d39214 Compare February 24, 2023 01:57
@google-oss-prow google-oss-prow bot removed the lgtm label Feb 24, 2023
@google-oss-prow
Copy link

New changes are detected. LGTM label has been removed.

@google-oss-prow google-oss-prow bot added size/XXL and removed size/L labels Feb 24, 2023
@agones-bot
Copy link
Collaborator

Build Failed 😱

Build Id: c61a5a8d-e4c6-4433-b81f-624d23ba907d

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

@agones-bot
Copy link
Collaborator

Build Succeeded 👏

Build Id: ba73c3f8-e58c-4423-af93-8933496d558e

The following development artifacts have been built, and will exist for the next 30 days:

A preview of the website (the last 30 builds are retained):

To install this version:

  • git fetch https://github.com/googleforgames/agones.git pull/2983/head:pr_2983 && git checkout pr_2983
  • helm install agones ./install/helm/agones --namespace agones-system --agones.image.release=us-docker.pkg.dev/agones-images/ci --set agones.image.tag=1.30.0-8d39214-amd64

@markmandel
Copy link
Member

Ruh roh. Lots of conflicts. Sorry - that was my CRD work.

@igooch igooch force-pushed the arbitrary-counts-lists-2716 branch from 8d39214 to 473afb7 Compare February 25, 2023 02:25
@agones-bot
Copy link
Collaborator

Build Failed 😱

Build Id: 020b8349-51b1-4ea2-9b6e-af789a6fc23f

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

@igooch igooch force-pushed the arbitrary-counts-lists-2716 branch from 473afb7 to 0096dcb Compare February 27, 2023 00:35
@agones-bot
Copy link
Collaborator

Build Failed 😱

Build Id: 7d7e4f61-5ce6-466f-a83d-957d2c2b204e

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

@google-oss-prow google-oss-prow bot added size/L and removed size/XXL labels Feb 27, 2023
@agones-bot
Copy link
Collaborator

Build Failed 😱

Build Id: 9d2d22b4-3b7e-4dc5-bf9e-0e19a5bfe442

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

@agones-bot
Copy link
Collaborator

Build Failed 😱

Build Id: 1255b437-c03e-4609-8c0d-1927378a4078

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

@igooch igooch force-pushed the arbitrary-counts-lists-2716 branch 3 times, most recently from b7188ef to fde7181 Compare February 27, 2023 17:21
@igooch igooch force-pushed the arbitrary-counts-lists-2716 branch from fde7181 to 709b1cd Compare February 27, 2023 17:34
@agones-bot
Copy link
Collaborator

Build Succeeded 👏

Build Id: 5ef69e69-d4e4-4176-8416-913b2b0438ea

The following development artifacts have been built, and will exist for the next 30 days:

A preview of the website (the last 30 builds are retained):

To install this version:

  • git fetch https://github.com/googleforgames/agones.git pull/2983/head:pr_2983 && git checkout pr_2983
  • helm install agones ./install/helm/agones --namespace agones-system --agones.image.release=us-docker.pkg.dev/agones-images/ci --set agones.image.tag=1.30.0-709b1cd-amd64

@igooch igooch changed the title Arbitrary counts lists 2716/Defaults Adds default values for Counters and Lists fields Feb 27, 2023
@gongmax gongmax merged commit e0f53f8 into googleforgames:main Feb 27, 2023
@Kalaiselvi84 Kalaiselvi84 added this to the 1.30.0 milestone Feb 28, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved area/user-experience Pertaining to developers trying to use Agones, e.g. SDK, installation, etc kind/feature New features for Agones size/L
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants