From 3811470ebf71e9ce256aab8a9b8c76af8e18793a Mon Sep 17 00:00:00 2001 From: eduardobarbosa Date: Wed, 4 Aug 2021 14:55:19 -0300 Subject: [PATCH] Add extra podLabels options to Flagger Helm Chart Signed-off-by: eduardobarbosa --- charts/flagger/templates/deployment.yaml | 5 +++++ charts/flagger/values.yaml | 2 ++ 2 files changed, 7 insertions(+) diff --git a/charts/flagger/templates/deployment.yaml b/charts/flagger/templates/deployment.yaml index ad0ed2591..7da66d675 100644 --- a/charts/flagger/templates/deployment.yaml +++ b/charts/flagger/templates/deployment.yaml @@ -22,6 +22,11 @@ spec: labels: app.kubernetes.io/name: {{ template "flagger.name" . }} app.kubernetes.io/instance: {{ .Release.Name }} + {{- if .Values.podLabels }} + {{- range $key, $value := .Values.podLabels }} + {{ $key }}: {{ $value | quote }} + {{- end }} + {{- end }} annotations: {{- if .Values.podAnnotations }} {{ toYaml .Values.podAnnotations | indent 8 }} diff --git a/charts/flagger/values.yaml b/charts/flagger/values.yaml index 7fdd802e7..79ef227d0 100644 --- a/charts/flagger/values.yaml +++ b/charts/flagger/values.yaml @@ -160,3 +160,5 @@ istio: podDisruptionBudget: enabled: false minAvailable: 1 + +podLabels: {} \ No newline at end of file