Skip to content

Conversation

@robscott
Copy link
Member

What type of PR is this?
/kind bug

What this PR does / why we need it:
None was accidentally added as an option for Route Namespaces as part of the ListenerSet work. This fixes that.

Which issue(s) this PR fixes:
Fixes #3743

Does this PR introduce a user-facing change?:

`None` has been removed as option for Route Namespaces.

/cc @howardjohn @dprotaso

@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/bug Categorizes issue or PR as related to a bug. cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. approved Indicates a PR has been approved by an approver from all required OWNERS files. size/XS Denotes a PR that changes 0-9 lines, ignoring generated files. labels Apr 14, 2025
@dprotaso
Copy link
Contributor

/lgtm
/approve

@k8s-ci-robot k8s-ci-robot added the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Apr 14, 2025
//
// +optional
// +kubebuilder:default=None
// +kubebuilder:validation:Enum=All;Selector;Same;None
Copy link
Contributor

Choose a reason for hiding this comment

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

FWIW I still don't think we need None since it can be represented as not setting allowedListeners. We don't really need 2 ways to represent the same thing?

Note we do not have a default at the GatewaySpec level, only at the AllowedListeners level

Copy link
Member Author

Choose a reason for hiding this comment

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

IMO it's still useful to intentionally opt-out of functionality like this instead of relying on the absence of config. On that note, there may be a point in the future where a Gateway wants to only have Listeners attached to it, and not any direct Route attachment. I don't think that was @dprotaso's goal to begin with, but if it was, we could have separate experimental validation that allowed AllowedRoutes to be set to None as well. In any case, this PR means that None is still an experimental channel feature, and we can still change if needed before this gets to GA.

@k8s-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

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

@dprotaso dprotaso mentioned this pull request Apr 14, 2025
@k8s-ci-robot k8s-ci-robot merged commit 7030481 into kubernetes-sigs:main Apr 14, 2025
13 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/bug Categorizes issue or PR as related to a bug. 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.

Remove newly introduced NamespacesFromNone

4 participants