Skip to content
Closed
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
3 changes: 3 additions & 0 deletions api/v1alpha1/types.go
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,9 @@ type ValkeySpec struct {
Binding *BindingProperties `json:"binding,omitempty"`
ExtraEnvVars []corev1.EnvVar `json:"extraEnvVars,omitempty"`
ExtraFlags []string `json:"extraFlags,omitempty"`
// Additional annotations added to the generated workload metadata.
// +optional
Annotations map[string]string `json:"annotations,omitempty"`
}

// SentinelProperties models attributes of the sentinel sidecar
Expand Down
7 changes: 7 additions & 0 deletions api/v1alpha1/zz_generated.deepcopy.go

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

6 changes: 6 additions & 0 deletions crds/cache.cs.sap.com_valkeys.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -958,6 +958,12 @@ spec:
x-kubernetes-list-type: atomic
type: object
type: object
annotations:
additionalProperties:
type: string
description: Additional annotations added to the generated workload
metadata.
type: object
binding:
description: BindingProperties models custom properties for the generated
binding secret
Expand Down
5 changes: 5 additions & 0 deletions pkg/operator/data/parameters.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -218,6 +218,11 @@ metrics:
{{- end }}{{- end }}
{{- end }}

{{- with .annotations }}
commonAnnotations:
{{- toYaml . | nindent 2 }}
{{- end }}

{{- if $tlsEnabled }}
tls:
enabled: true
Expand Down