Skip to content

Commit

Permalink
k8s: Enable prefix template in advertised addresses
Browse files Browse the repository at this point in the history
Enable redpanda-data/helm-charts#797 change in operator.

(cherry picked from commit 9744934)
  • Loading branch information
RafalKorepta authored and vbotbuildovich committed Oct 17, 2023
1 parent b466d9e commit 66d4811
Show file tree
Hide file tree
Showing 3 changed files with 32 additions and 8 deletions.
19 changes: 11 additions & 8 deletions src/go/k8s/apis/redpanda/v1alpha1/redpanda_clusterspec_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -217,14 +217,15 @@ type ExternalService struct {

// External is a top-level field of the values file
type External struct {
Addresses []string `json:"addresses,omitempty"`
Annotations map[string]string `json:"annotations,omitempty"`
Domain *string `json:"domain,omitempty"`
Enabled *bool `json:"enabled,omitempty"`
Service *ExternalService `json:"service,omitempty"`
SourceRanges []string `json:"sourceRanges,omitempty"`
Type *string `json:"type,omitempty"`
ExternalDNS *ExternalDNS `json:"externalDns,omitempty"`
Addresses []string `json:"addresses,omitempty"`
Annotations map[string]string `json:"annotations,omitempty"`
Domain *string `json:"domain,omitempty"`
Enabled *bool `json:"enabled,omitempty"`
Service *ExternalService `json:"service,omitempty"`
SourceRanges []string `json:"sourceRanges,omitempty"`
Type *string `json:"type,omitempty"`
ExternalDNS *ExternalDNS `json:"externalDns,omitempty"`
PrefixTemplate *string `json:"prefixTemplate,omitempty"`
}

// Logging is a top-level field of the values file
Expand Down Expand Up @@ -451,6 +452,7 @@ type HTTP struct {
KafkaEndpoint *string `json:"kafkaEndpoint,omitempty"`
Port *int `json:"port,omitempty"`
TLS *ListenerTLS `json:"tls,omitempty"`
PrefixTemplate *string `json:"prefixTemplate,omitempty"`
}

// Kafka is a top-level field of the values file
Expand All @@ -459,6 +461,7 @@ type Kafka struct {
External map[string]*ExternalListener `json:"external,omitempty"`
Port *int `json:"port,omitempty"`
TLS *ListenerTLS `json:"tls,omitempty"`
PrefixTemplate *string `json:"prefixTemplate,omitempty"`
}

// RPC is a top-level field of the values file
Expand Down
15 changes: 15 additions & 0 deletions src/go/k8s/apis/redpanda/v1alpha1/zz_generated.deepcopy.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -307,6 +307,8 @@ spec:
required:
- enabled
type: object
prefixTemplate:
type: string
service:
description: ExternalService allows you to enable or disable
creation of external service type
Expand Down Expand Up @@ -437,6 +439,8 @@ spec:
type: string
port:
type: integer
prefixTemplate:
type: string
tls:
description: ListenerTLS is a top-level field of the values
file
Expand Down Expand Up @@ -480,6 +484,8 @@ spec:
type: object
port:
type: integer
prefixTemplate:
type: string
tls:
description: ListenerTLS is a top-level field of the values
file
Expand Down

0 comments on commit 66d4811

Please sign in to comment.