@@ -315,16 +315,25 @@ type GatewayTLSConfig struct {
315
315
// implies that the Gateway can't decipher the TLS stream except for
316
316
// the ClientHello message of the TLS protocol.
317
317
// CertificateRef field is ignored in this mode.
318
+ //
319
+ // Support: Core
320
+ //
321
+ // +kubebuilder:default=Terminate
318
322
Mode TLSModeType `json:"mode,omitempty"`
319
323
320
324
// CertificateRef is the reference to Kubernetes object that
321
325
// contain a TLS certificate and private key.
322
326
// This certificate MUST be used for TLS handshakes for the domain
323
327
// this GatewayTLSConfig is associated with.
328
+ //
329
+ // This field is required when mode is set to "Terminate" and optional
330
+ // otherwise.
331
+ //
324
332
// If an entry in this list omits or specifies the empty
325
333
// string for both the group and the resource, the resource defaults to "secrets".
326
334
// An implementation may support other resources (for example, resource
327
335
// "mycertificates" in group "networking.acme.io").
336
+ //
328
337
// Support: Core (Kubernetes Secrets)
329
338
// Support: Implementation-specific (Other resource types)
330
339
//
@@ -338,6 +347,8 @@ type GatewayTLSConfig struct {
338
347
// set to 'Allow' as it will be used as the default certificate for the
339
348
// listener.
340
349
//
350
+ // Support: Core
351
+ //
341
352
// +kubebuilder:default={certificate:Deny}
342
353
RouteOverride TLSOverridePolicy `json:"routeOverride,omitempty"`
343
354
@@ -357,7 +368,6 @@ type GatewayTLSConfig struct {
357
368
358
369
// TLSModeType type defines behavior of gateway with TLS protocol.
359
370
// +kubebuilder:validation:Enum=Terminate;Passthrough
360
- // +kubebuilder:default=Terminate
361
371
type TLSModeType string
362
372
363
373
const (
0 commit comments