-
Notifications
You must be signed in to change notification settings - Fork 828
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
add metadata to agones webhook autoscaler request #3957
base: main
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -37,7 +37,8 @@ The current set of `alpha` and `beta` feature gates: | |
| [Rolling Update Fixes](https://github.com/googleforgames/agones/issues/3688) | `RollingUpdateFix` | Disabled | `Alpha` | 1.41.0 | | ||
| [Multiple dynamic port ranges](https://github.com/googleforgames/agones/issues/1911) | `PortRanges` | Disabled | `Alpha` | 1.41.0 | | ||
| [Port Policy None](https://github.com/googleforgames/agones/issues/3804) | `PortPolicyNone` | Disabled | `Alpha` | 1.41.0 | | ||
| [Scheduled Fleet Autoscaling](https://github.com/googleforgames/agones/issues/3008) | `ScheduledAutoscaler` | Disabled | `Alpha` | 1.43.0 | | ||
| [Scheduled Fleet Autoscaling](https://github.com/googleforgames/agones/issues/3951) | `ScheduledAutoscaler` | Disabled | `Alpha` | 1.43.0 | | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. feature shortcode here too please, and I think this will be good to go 👍🏻 There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Oh I missed that one, good catch! |
||
| [Extend Webhook autoscaler to send fleet metadata with the request](https://github.com/googleforgames/agones/issues/3008) | `FleetAutoscaleRequestMetaData` | Disabled | `Alpha` | 1.47.0 | | ||
| Example Gate (not in use) | `Example` | Disabled | None | 0.13.0 | | ||
|
||
|
||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -374,6 +374,10 @@ type FleetAutoscaleRequest struct { | |
Namespace string `json:"namespace"` | ||
// The Fleet's status values | ||
Status v1.FleetStatus `json:"status"` | ||
{{% feature publishVersion="1.47.0" %}} | ||
// Standard object metadata; More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata. | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Super late to this party, but new additions will need a feature shortcode. See https://agones.dev/site/docs/contribute/#within-a-page for an example. Also an addition here: https://github.com/googleforgames/agones/blob/main/site/content/en/docs/Guides/feature-stages.md?plain=1#L41 (also feature shortcode - may need to copy the whole table). This is because docs get published intermediately, so we need to hold back documentation on unreleased features. |
||
MetaData *metav1.ObjectMeta `json:"metadata,omitempty"` | ||
{{% /feature %}} | ||
} | ||
|
||
type FleetAutoscaleResponse struct { | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🤔 I'm looking at this again, and wondering if this should be all the ObjectMeta - which is a lot, and we copy a chunk of it here already (Name and Namespace for example) - so we are also duplicating some effort.
Should it just be labels and annotations? Do we need everything?
Admittedly, in the ticket it says "metadata" but in my head I thought of it as "labels and annotations" and didn't clarify.
WDYT?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
My initial thought was to just do labels and annotations, but it was ”easier” to add the whole metadata.
Now that you raising it it makes more sense to just have labels and annotations.
I’ll update this PR accordingly