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