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

Allocated GameServers updated on Fleet update #3101

Merged
merged 2 commits into from
Apr 22, 2023

Conversation

markmandel
Copy link
Member

What type of PR is this?

Uncomment only one /kind <> line, press enter to put that in a new line, and remove leading whitespace from that line:

/kind breaking
/kind bug
/kind cleanup
/kind documentation

/kind feature

/kind hotfix

What this PR does / Why we need it:

Functional implementation and testing of applying labels and/or annotations to any Allocated GameServers that are overflowed past the configured replica count.

Which issue(s) this PR fixes:

Work on #2682

Special notes for your reviewer:

Next ➡️ write some guides to close out the ticket.

@agones-bot
Copy link
Collaborator

Build Failed 😱

Build Id: 8ef68b27-c5e5-45cd-b863-4736f0ecf596

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

@agones-bot
Copy link
Collaborator

Build Failed 😱

Build Id: 1e12f288-8a7e-41f2-bf6d-f7099eceb1c6

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

@agones-bot
Copy link
Collaborator

Build Failed 😱

Build Id: b5d86899-2e39-4122-9211-f26b4632a0b8

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

@zmerlynn
Copy link
Collaborator

Step #24 - "submit-e2e-test-cloud-build": generic-1.25: Step #2 - "e2e-stable": Error: UPGRADE FAILED: Get "https://35.202.16.167/openapi/v2?timeout=32s": dial tcp 35.202.16.167:443: i/o timeout

huh.

@agones-bot
Copy link
Collaborator

Build Failed 😱

Build Id: 955130e5-56c2-4a51-ae61-f11f4db5d89c

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

@agones-bot
Copy link
Collaborator

Build Succeeded 👏

Build Id: 8873d8ff-d184-40ba-b37c-b7a9ebe31254

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/3101/head:pr_3101 && git checkout pr_3101
  • helm install agones ./install/helm/agones --namespace agones-system --agones.image.release=us-docker.pkg.dev/agones-images/ci --set agones.image.tag=1.32.0-f429ea5-amd64

@@ -50,6 +50,17 @@ spec:
maxSurge: 25%
# the amount to decrements GameServers by. Defaults to 25%
maxUnavailable: 25%
# [Stage:Alpha]
# [FeatureFlag:FleetAllocationOverflow]
# Labels and/or Annotations to apply to GameServers when the number of Allocated GameServers drops below
Copy link
Collaborator

Choose a reason for hiding this comment

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

Should this be "Labels and/or Annotations to apply to GameServers when the number of the desired replicas on the underlying GameServerSet drops below the number of Allocated GameServers"?

Copy link
Member Author

Choose a reason for hiding this comment

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

You are right - I've got it backwards.

@agones-bot
Copy link
Collaborator

Build Succeeded 👏

Build Id: 94a0e3ee-cef5-481f-8ec3-92ea7877bee2

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/3101/head:pr_3101 && git checkout pr_3101
  • helm install agones ./install/helm/agones --namespace agones-system --agones.image.release=us-docker.pkg.dev/agones-images/ci --set agones.image.tag=1.32.0-7c14c5a-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

return nil
}

rest = sortGameServersByStrategy(gsSet.Spec.Scheduling, rest, c.counter.Counts())
Copy link
Collaborator

Choose a reason for hiding this comment

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

nit: shall we add some documentation about the sorting logic when picking up GameServers to add the overflow annotations/labels? Either in the design issue or somewhere on the website. I think it's kind of important for customer to be aware of, but right now it's not clear without looking into the code.

@google-oss-prow
Copy link

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: gongmax, markmandel

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@google-oss-prow google-oss-prow bot removed the lgtm label Apr 21, 2023
@google-oss-prow
Copy link

New changes are detected. LGTM label has been removed.

@agones-bot
Copy link
Collaborator

Build Failed 😱

Build Id: e1a57c48-e51e-42fa-957d-ac7f046fc378

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

@agones-bot
Copy link
Collaborator

Build Failed 😱

Build Id: 9ee52662-420f-4917-8c85-1d8a6c994f95

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

@gongmax
Copy link
Collaborator

gongmax commented Apr 21, 2023

make[1]: *** [includes/website.mk:111: test-gen-api-docs] Error 1
make: *** [includes/website.mk:73: site-test] Error 2

@markmandel
Copy link
Member Author

make[1]: *** [includes/website.mk:111: test-gen-api-docs] Error 1
make: *** [includes/website.mk:73: site-test] Error 2

Oops, looks like I missed something. I'll update.

Functional implementation and testing of applying labels and/or
annotations to any `Allocated` `GameServers` that are overflowed past
the configured replica count.

Next ➡️ write some guides to close out the ticket.

Work on googleforgames#2682
@agones-bot
Copy link
Collaborator

Build Succeeded 👏

Build Id: ba0c8f33-cf13-48af-b61d-950fa46f72fc

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/3101/head:pr_3101 && git checkout pr_3101
  • helm install agones ./install/helm/agones --namespace agones-system --agones.image.release=us-docker.pkg.dev/agones-images/ci --set agones.image.tag=1.32.0-4760db7-amd64

@markmandel markmandel merged commit 0fc3532 into googleforgames:main Apr 22, 2023
@markmandel markmandel deleted the feature/allocationOverflow branch April 22, 2023 11:27
@Kalaiselvi84 Kalaiselvi84 added the kind/feature New features for Agones label May 18, 2023
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.

5 participants