E540 Add gateway class label to generated objects by howardjohn · Pull Request #3955 · kubernetes-sigs/gateway-api · GitHub
[go: up one dir, main page]

Skip to content

Conversation

howardjohn
Copy link
Contributor

What type of PR is this?

/kind gep
/kind test

What this PR does / why we need it:
This proposes adding an optional new label to generated objects. This is useful for general querying, such as "find the total CPU usage of all pods created by ".

Which issue(s) this PR fixes:

Fixes #

Does this PR introduce a user-facing change?:

Added a new standardized label `gateway.networking.k8s.io/gateway-class-name` to be added to generated objects. This mirrors the existing `gateway.networking.k8s.io/gateway-name` label.

This proposes adding an optional new label to generated objects. This is
useful for general querying, such as "find the total CPU usage of all
pods created by <implementation>".
@k8s-ci-robot k8s-ci-robot added release-note Denotes a PR that will be considered when it comes time to generate release notes. kind/gep PRs related to Gateway Enhancement Proposal(GEP) kind/test cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. labels Jul 25, 2025
@k8s-ci-robot k8s-ci-robot added the size/XS Denotes a PR that changes 0-9 lines, ignoring generated files. label Jul 25, 2025
@LiorLieberman
Copy link
Member

overall this looks good to me. Did you socialize this "should" part with other implementations?

/cc @arkodg @robscott @youngnick

@arkodg
Copy link
Contributor
arkodg commented Aug 6, 2025

is there prior art here of multiple implementations (3 or more) adding this label ?

@howardjohn
Copy link
Contributor Author

is there prior art here of multiple implementations (3 or more) adding this label ?

Not really, its a chicken an egg. It would be inappropriate for an implementation to use a label scoped under gateway.networking.k8s.io without it being an official label?

@LiorLieberman
Copy link
Member

Not really, its a chicken an egg. It would be inappropriate for an implementation to use a label scoped under gateway.networking.k8s.io without it being an official label?

Yep, agreed no one should use k8s.io prefixed labels without recognition of this label upstream.

@arkodg any major objection for this? looks like it is no effort to add, but could just benefit the users.

@arkodg
Copy link
Contributor
arkodg commented Aug 6, 2025

no objections from my end, just a little hard to compute ROI atm

@robscott
8000
Copy link
Member
robscott commented Aug 7, 2025

Seems reasonable to me.

/approve

@k8s-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: howardjohn, robscott

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

@k8s-ci-robot k8s-ci-robot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Aug 7, 2025
@LiorLieberman
Copy link
Member

/lgtm

Curios if we prefer MAY over SHOULD though. Like, is someone is going to encourage implementors to do that?

/hold for deciding on the above, feel free to remove

@k8s-ci-robot k8s-ci-robot added the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Aug 7, 2025
@youngnick
Copy link
Contributor

Yes, I think this is fine.

/unhold

@k8s-ci-robot k8s-ci-robot removed the do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. label Aug 8, 2025
@k8s-ci-robot k8s-ci-robot merged commit b167eed into kubernetes-sigs:main Aug 8, 2025
19 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved Indicates a PR has been approved by an approver from all required OWNERS files. cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. kind/gep PRs related to Gateway Enhancement Proposal(GEP) kind/test lgtm "Looks good to me", indicates that a PR is ready to be merged. release-note Denotes a PR that will be considered when it comes time to generate release notes. size/XS Denotes a PR that changes 0-9 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants
0