Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

crd: require unique hosts #41

Merged
merged 1 commit into from
Apr 3, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions apis/zalando.org/v1/types.go
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ type RouteGroupList struct {
type RouteGroupSpec struct {
// List of hostnames for the RouteGroup
// +kubebuilder:validation:MinItems=1
// +listType=set
Hosts []string `json:"hosts,omitempty"`
// List of backends that can be referenced in the routes
Backends []RouteGroupBackend `json:"backends"`
Expand Down Expand Up @@ -179,6 +180,7 @@ type RouteGroupTLSSpec struct {
// The values in this list must match the host name(s) used for
// the RouteGroup in order to terminate TLS for the host(s).
// +kubebuilder:validation:MinItems=1
// +listType=set
Hosts []string `json:"hosts"`

// SecretName is the name of the secret used to terminate TLS traffic.
Expand Down
6 changes: 0 additions & 6 deletions client/clientset/versioned/doc.go

This file was deleted.

2 changes: 2 additions & 0 deletions zalando.org_routegroups.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -136,6 +136,7 @@ spec:
type: string
minItems: 1
type: array
x-kubernetes-list-type: set
routes:
description: Routes describe how a matching HTTP request is handled
and where it is forwarded to
Expand Down Expand Up @@ -221,6 +222,7 @@ spec:
type: string
minItems: 1
type: array
x-kubernetes-list-type: set
secretName:
description: |-
SecretName is the name of the secret used to terminate TLS traffic.
Expand Down