Skip to content

Commit a07680f

Browse files
TLSRoute: Require hostnames via +required (#3918)
* TLSRoute: Require hostnames, no omitempty * TLSRoute: Require hostnames using +required
1 parent 6d76ec6 commit a07680f

File tree

3 files changed

+3
-1
lines changed

3 files changed

+3
-1
lines changed

apis/v1alpha3/tlsroute_types.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,7 @@ type TLSRouteSpec struct {
8686
//
8787
// +kubebuilder:validation:MinItems=1
8888
// +kubebuilder:validation:MaxItems=16
89+
// +required
8990
Hostnames []Hostname `json:"hostnames,omitempty"`
9091

9192
// Rules are a list of TLS matchers and actions.

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

Lines changed: 1 addition & 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)