From 492e0764ef1249de783601a501665043cca6dc6a Mon Sep 17 00:00:00 2001 From: Ravi Singal <62086374+ravisingal@users.noreply.github.com> Date: Wed, 25 Sep 2024 20:35:00 +0530 Subject: [PATCH] chore: merge pod labels with common pod labels (#99) --- helm/templates/job.yaml | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/helm/templates/job.yaml b/helm/templates/job.yaml index 0b2f760..1565423 100644 --- a/helm/templates/job.yaml +++ b/helm/templates/job.yaml @@ -19,10 +19,7 @@ spec: metadata: labels: release: {{ .Release.Name }} - {{- with .Values.podLabels }} - {{- toYaml . | nindent 8 }} - {{- end }} - {{- with .Values.commonPodLabels }} + {{- with merge .Values.podLabels .Values.commonPodLabels }} {{- toYaml . | nindent 8 }} {{- end }} {{- with .Values.commonPodAnnotations }}