Skip to content

Commit 93b5026

Browse files
kflynnk8s-ci-robot
authored andcommitted
chore: Rewrap Gateway DefaultScope comments and make generate
Signed-off-by: Flynn <[email protected]>
1 parent 548e49b commit 93b5026

File tree

4 files changed

+94
-52
lines changed

4 files changed

+94
-52
lines changed

apis/v1/gateway_types.go

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

298-
// DefaultScope when set configures the Gateway as a default Gateway, meaning
299-
// it will dynamically and implicitly have Routes (e.g. HTTPRoute) attached
300-
// to it, according to the scope configured here.
301-
//
302-
// If unset or set to the empty string `""` (the default), the Gateway will not
303-
// act as a default Gateway; if set, the Gateway will claim any Route with a
304-
// matching scope set in its UseDefaultGateway field, subject to the usual
305-
// rules about which routes the Gateway can attach to.
306-
//
307-
// Think carefully before using this functionality! While the normal rules about
308-
// which Route can apply are still enforced, it is simply easier for the wrong
309-
// Route to be accidentally attached to this Gateway in this configuration. If the
310-
// Gateway operator is not also the operator in control of the scope (e.g.
311-
// namespace) with tight controls and checks on what kind of workloads and
312-
// Routes get added in that scope, we strongly recommend not using this just
313-
// because it seems convenient, and instead stick to explicit Route attachment.
314-
//
315-
// +optional
316-
// <gateway:experimental>
298+
// DefaultScope, when set, configures the Gateway as a default Gateway,
299+
// meaning it will dynamically and implicitly have Routes (e.g. HTTPRoute)
300+
// attached to it, according to the scope configured here.
301+
//
302+
// If unset or set to the empty string `""` (the default), the Gateway
303+
// will not act as a default Gateway; if set, the Gateway will claim any
304+
// Route with a matching scope set in its UseDefaultGateway field, subject
305+
// to the usual rules about which routes the Gateway can attach to.
306+
//
307+
// Think carefully before using this functionality! While the normal rules
308+
// about which Route can apply are still enforced, it is simply easier for
309+
// the wrong Route to be accidentally attached to this Gateway in this
310+
// configuration. If the Gateway operator is not also the operator in
311+
// control of the scope (e.g. namespace) with tight controls and checks on
312+
// what kind of workloads and Routes get added in that scope, we strongly
313+
// recommend not using this just because it seems convenient, and instead
314+
// stick to explicit Route attachment.
315+
//
316+
// +optional <gateway:experimental>
317317
DefaultScope GatewayDefaultScope `json:"defaultScope,omitempty"`
318318
}
319319

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

Lines changed: 34 additions & 32 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_gateways.yaml

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

pkg/generated/openapi/zz_generated.openapi.go

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)