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

Added labels to the agones.allocator #3125

Merged
merged 11 commits into from
May 5, 2023

Conversation

Kalaiselvi84
Copy link
Contributor

@Kalaiselvi84 Kalaiselvi84 commented Apr 26, 2023

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:

Which issue(s) this PR fixes:

Closes #3093

Special notes for your reviewer:

@agones-bot
Copy link
Collaborator

Build Failed 😱

Build Id: fa611a27-0e46-496f-978a-c2bad5ccbea1

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

@Kalaiselvi84 Kalaiselvi84 marked this pull request as ready for review April 27, 2023 04:44
@google-oss-prow google-oss-prow bot requested a review from cyriltovena April 27, 2023 04:44
@agones-bot
Copy link
Collaborator

Build Succeeded 👏

Build Id: 05cffcac-f387-4841-9bb9-cacdf0a74b46

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/3125/head:pr_3125 && git checkout pr_3125
  • 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-1198956-amd64

@agones-bot
Copy link
Collaborator

Build Failed 😱

Build Id: d8ec5534-8238-4c74-b681-5c95860de705

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

@agones-bot
Copy link
Collaborator

Build Failed 😱

Build Id: 263f9616-5006-4544-9188-f75f948eaef5

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

@agones-bot
Copy link
Collaborator

Build Succeeded 👏

Build Id: 3a2f8f06-effb-47e4-acd3-54c27168db5d

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/3125/head:pr_3125 && git checkout pr_3125
  • 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-43987a7-amd64

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.

Small docs change, but otherwise good to go.

@@ -201,6 +201,7 @@ The following tables lists the configurable parameters of the Agones chart and t
| `agones.allocator.tolerations` | Allocator [toleration][toleration] labels for pod assignment | `[]` |
| `agones.allocator.affinity` | Allocator [affinity][affinity] settings for pod assignment | `{}` |
| `agones.allocator.annotations` | [Annotations][annotations] added to the Agones allocator pods | `{}` |
| `agones.allocator.labels` | [Labels][labels] added to the Agones allocator pods | `{}` |
Copy link
Member

Choose a reason for hiding this comment

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

This table will need to added to the feature shortcoded table at the bottom so they don't show up in documentation when merged into main (docs get updated immeadiately)
https://agones.dev/site/docs/contribute/#within-a-page

#2961 is a good example

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I've updated the helm file, please review and let me know if there's anything that needs further attention..

@agones-bot
Copy link
Collaborator

Build Succeeded 👏

Build Id: f3cb718f-3b53-4e2d-bee6-8349d485ca80

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/3125/head:pr_3125 && git checkout pr_3125
  • 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-45f7840-amd64

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 realised this was missing a step.

Also hope you don't mind but I edited the description to add the "closes" to the issue so it would actually close the issue.

@@ -36,6 +36,7 @@ agones:
allocator:
name: agones-allocator
annotations: {}
labels: {}
Copy link
Member

Choose a reason for hiding this comment

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

I just realised something! This value hasn't been applied to the actual service Deployment! We will need to do that as well.

https://github.com/googleforgames/agones/blob/main/install/helm/agones/templates/service/allocation.yaml

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I have added labels in this allocation.yaml file, please share your suggestions

@agones-bot
Copy link
Collaborator

Build Failed 😱

Build Id: f5eb7d77-a70d-4724-9b1c-35dba6dd7c54

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

@markmandel
Copy link
Member

Looks like a flake:

--- FAIL: TestAllocatorAllocate (2.65s)
    allocator_test.go:120: 
        	Error Trace:	/go/src/agones.dev/agones/pkg/gameserverallocations/allocator_test.go:120
        	Error:      	Expected value not to be nil.
        	Test:       	TestAllocatorAllocate

@@ -160,6 +160,9 @@ spec:
{{- end }}
{{- if .Values.agones.allocator.annotations }}
{{- toYaml .Values.agones.allocator.annotations | nindent 8 }}
{{- end }}
{{- if .Values.agones.allocator.labels }}
Copy link
Member

Choose a reason for hiding this comment

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

Looks good - just checking if you had a chance to do any manual testing on this? (I don't think there's any better way to actually test this).

Easiest way might be to use make install and pass in some extra HELM_ARGS and make sure the Deployment labels are good.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I have validated the labels manually per your guidance

Copy link
Member

Choose a reason for hiding this comment

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

Thanks for the validation - but I just realised after looking at it, that these values are showing up in the annotations: section.

We should move this code up to above line 152, so it sits under labels: - then it should be good to go.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

The values have been moved to the labels section

@agones-bot
Copy link
Collaborator

Build Failed 😱

Build Id: 12b838fd-72fc-43f0-b78c-5fc07aec6fe4

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

@google-oss-prow google-oss-prow bot added size/S and removed size/XS labels May 5, 2023
@agones-bot
Copy link
Collaborator

Build Succeeded 👏

Build Id: 8a643f02-2662-4e04-adf6-7a0a7226209a

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/3125/head:pr_3125 && git checkout pr_3125
  • 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-52d7ae5-amd64

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.

Looks good!

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.

Looks good!

@google-oss-prow google-oss-prow bot added the lgtm label May 5, 2023
@google-oss-prow
Copy link

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: Kalaiselvi84, 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

@markmandel markmandel merged commit 8b56232 into googleforgames:main May 5, 2023
@Kalaiselvi84 Kalaiselvi84 added the kind/feature New features for Agones label May 18, 2023
@Kalaiselvi84 Kalaiselvi84 deleted the issues/279057770 branch March 15, 2024 01:20
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.

Helm option: agones.allocator.labels
4 participants