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

Extend Webhook autoscaler to send fleet metadata with the request #3951

Open
swermin opened this issue Aug 15, 2024 · 4 comments · May be fixed by #3957
Open

Extend Webhook autoscaler to send fleet metadata with the request #3951

swermin opened this issue Aug 15, 2024 · 4 comments · May be fixed by #3957
Labels
kind/feature New features for Agones

Comments

@swermin
Copy link

swermin commented Aug 15, 2024

Is your feature request related to a problem? Please describe.
We are running our fleets throughout different clusters and independently of one and other and use the webhook autoscaler to make sure that we have necessary sizes on all the fleets.
With this solution we are allocating game servers based on labels and not on fleet names, this means that on the webhook autoscaler endpoint we have no idea to determine the size since the request does not contain any metadata at all regarding the fleet in question.

Describe the solution you'd like
We want to extend the FleetAutoscaleRequest to include the fleet metadata when reporting to the service(s).

Describe alternatives you've considered
We made changes to the URL used for the webhook but that means that we have to update the URL every time we add new label and/or annotations

@swermin swermin added the kind/feature New features for Agones label Aug 15, 2024
@markmandel
Copy link
Member

Seems legit to me! I assume, name, annotations and labels?

@swermin
Copy link
Author

swermin commented Aug 18, 2024

That is correct. I was looking into the code and found that the easiest way to add these was to put the whole metadata into the request, but I do like the idea of making that payload smaller

@markmandel
Copy link
Member

🤔 it would make the code easier to grab the entire metadata object and chuck it across.

If you're implementing it, I'll let you decide 😄

@swermin swermin linked a pull request Aug 20, 2024 that will close this issue
@swermin
Copy link
Author

swermin commented Aug 20, 2024

I've added a PR, let me know what you think 😄

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/feature New features for Agones
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants