Skip to content

Commit d80fa39

Browse files
kflynnk8s-ci-robot
authored andcommitted
chore: Review feedback from Nick Young
Clarify that empty string and unset are equivalent Co-authored-by: Nick Young <[email protected]> Signed-off-by: Flynn <[email protected]>
1 parent 0ea9721 commit d80fa39

11 files changed

+119
-16
lines changed

apis/v1/gateway_types.go

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -295,8 +295,9 @@ type GatewaySpec struct {
295295
// <gateway:experimental>
296296
TLS *GatewayTLSConfig `json:"tls,omitempty"`
297297

298-
// DefaultScope defines the default scope for this Gateway. If unset (the
299-
// default), the Gateway will not act as a default Gateway; if set, the
298+
// DefaultScope defines the default scope for this Gateway. If unset or
299+
// set to the empty string `""` (the default), the Gateway will not
300+
// act as a default Gateway; if set, the
300301
// Gateway will claim any Route with a matching scope set in its
301302
// UseDefaultGateway field, subject to the usual rules about which routes
302303
// the Gateway can attach to.

apis/v1/shared_types.go

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -247,8 +247,14 @@ type CommonRouteSpec struct {
247247
// supporting the named scope, subject to the usual rules about which
248248
// Routes a Gateway is allowed to claim.
249249
//
250-
// +optional
251-
// <gateway:experimental>
250+
// Think carefully before using this functionality! The set of default
251+
// Gateways supporting the requested scope can change over time without
252+
// any notice to the Route author, and in many situations it will not be
253+
// appropriate to request a default Gateway for a given Route -- for
254+
// example, a Route with specific security needs should almost certainly
255+
// not use a default Gateway.
256+
//
257+
// +optional <gateway:experimental>
252258
UseDefaultGateway GatewayDefaultScope `json:"useDefaultGateway,omitempty"`
253259
}
254260

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

Lines changed: 6 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

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

Lines changed: 7 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

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

Lines changed: 14 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

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

Lines changed: 7 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

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

Lines changed: 14 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

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

Lines changed: 7 additions & 0 deletions
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_grpcroutes.yaml

Lines changed: 15 additions & 0 deletions
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_httproutes.yaml

Lines changed: 30 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)