Skip to content

Commit 2dde6db

Browse files
committed
feat(cloudnative-pg): adding commonLabels to all resources
Signed-off-by: Lukas Hankeln <[email protected]>
1 parent ff25402 commit 2dde6db

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

charts/cloudnative-pg/templates/_helpers.tpl

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,9 @@ helm.sh/chart: {{ include "cloudnative-pg.chart" . }}
5151
app.kubernetes.io/version: {{ .Chart.AppVersion | quote }}
5252
{{- end }}
5353
app.kubernetes.io/managed-by: {{ .Release.Service }}
54+
{{- if .Values.commonLabels }}
55+
{{ toYaml .Values.commonLabels }}
56+
{{- end }}
5457
{{- end }}
5558

5659
{{/*

charts/cloudnative-pg/values.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -115,6 +115,8 @@ rbac:
115115

116116
# -- Annotations to be added to all other resources.
117117
commonAnnotations: {}
118+
# -- Labels to be added to all other resources.
119+
commonLabels: {}
118120
# -- Annotations to be added to the pod.
119121
podAnnotations: {}
120122
# -- Labels to be added to the pod.

0 commit comments

Comments
 (0)