Skip to content
Open
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
8 changes: 8 additions & 0 deletions dist/resources/install.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -121,6 +121,14 @@ spec:
description: By default, one port is set with default values
items:
properties:
domain:
description: |-
Domain overrides the subdomain prefix used for DNS.
For HTTPS it replaces "{name}-web", for TCP it replaces "{name}".
When empty the default kCTF naming is used.
maxLength: 63
pattern: ^[a-z0-9]([a-z0-9-]*[a-z0-9])?$
type: string
domains:
description: Extra domains for managed certificates. Only
used for type HTTPS.
Expand Down
7 changes: 7 additions & 0 deletions kctf-operator/api/v1/challenge_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,13 @@ type PortSpec struct {
// +kubebuilder:validation:Required
Protocol corev1.Protocol `json:"protocol"`

// Domain overrides the subdomain prefix used for DNS.
// For HTTPS it replaces "{name}-web", for TCP it replaces "{name}".
// When empty the default kCTF naming is used.
// +kubebuilder:validation:MaxLength=63
// +kubebuilder:validation:Pattern=`^[a-z0-9]([a-z0-9-]*[a-z0-9])?$`
Domain string `json:"domain,omitempty"`

// Extra domains for managed certificates. Only used for type HTTPS.
Domains []string `json:"domains,omitempty"`
}
Expand Down
8 changes: 8 additions & 0 deletions kctf-operator/config/crd/bases/kctf.dev_challenges.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,14 @@ spec:
description: By default, one port is set with default values
items:
properties:
domain:
description: |-
Domain overrides the subdomain prefix used for DNS.
For HTTPS it replaces "{name}-web", for TCP it replaces "{name}".
When empty the default kCTF naming is used.
maxLength: 63
pattern: ^[a-z0-9]([a-z0-9-]*[a-z0-9])?$
type: string
domains:
description: Extra domains for managed certificates. Only
used for type HTTPS.
Expand Down
Loading