Skip to content

Commit 7030481

Browse files
authored
Removing "None" as option for Route Namespaces (#3748)
1 parent 9d55afb commit 7030481

4 files changed

+2
-7
lines changed

apis/v1/gateway_types.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -315,6 +315,7 @@ type ListenerNamespaces struct {
315315
//
316316
// +optional
317317
// +kubebuilder:default=None
318+
// +kubebuilder:validation:Enum=All;Selector;Same;None
318319
From *FromNamespaces `json:"from,omitempty"`
319320

320321
// Selector must be specified when From is set to "Selector". In that case,
@@ -669,8 +670,6 @@ type AllowedRoutes struct {
669670

670671
// FromNamespaces specifies namespace from which Routes/ListenerSets may be attached to a
671672
// Gateway.
672-
//
673-
// +kubebuilder:validation:Enum=All;Selector;Same;None
674673
type FromNamespaces string
675674

676675
const (
@@ -700,6 +699,7 @@ type RouteNamespaces struct {
700699
//
701700
// +optional
702701
// +kubebuilder:default=Same
702+
// +kubebuilder:validation:Enum=All;Selector;Same
703703
From *FromNamespaces `json:"from,omitempty"`
704704

705705
// Selector must be specified when From is set to "Selector". In that case,

config/crd/experimental/gateway.networking.k8s.io_gateways.yaml

-2
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

config/crd/experimental/gateway.networking.x-k8s.io_xlistenersets.yaml

-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

config/crd/standard/gateway.networking.k8s.io_gateways.yaml

-2
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)