Skip to content

Commit 9ec741e

Browse files
ecojanamuraru
authored andcommitted
Added support for additional labels that will be added to all resources (#19)
1 parent 25a0cfc commit 9ec741e

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

charts/zookeeper-operator/templates/_helpers.tpl

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,9 @@ app.kubernetes.io/version: {{ .Chart.AppVersion | quote }}
3434
{{- end }}
3535
app.kubernetes.io/managed-by: {{ .Release.Service }}
3636
helm.sh/chart: "{{ .Chart.Name }}-{{ .Chart.Version | replace "+" "_" }}"
37+
{{- range $k, $v := $.Values.labels }}
38+
{{ $k }}: {{ $v | quote }}
39+
{{- end }}
3740
{{- end -}}
3841

3942
{{/*

charts/zookeeper-operator/values.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,9 @@ global:
77
imagePullSecrets: []
88
# - private-registry-key
99

10+
# Additional labels that will be added to all resources
11+
labels: {}
12+
1013
image:
1114
repository: pravega/zookeeper-operator
1215
tag: 0.2.13

0 commit comments

Comments
 (0)