Support setting pod annotations separately on controller and dashboard

Signed-off-by: Khanh Ngo <k@ndk.name>
This commit is contained in:
Khanh Ngo 2023-03-24 11:47:46 +01:00
parent ceb6011cb6
commit d2ce5d0add
3 changed files with 13 additions and 5 deletions

View file

@ -15,9 +15,11 @@ spec:
replicas: {{ .Values.controller.replicas }}
template:
metadata:
{{- with .Values.podAnnotations }}
{{- with (mergeOverwrite (deepCopy .Values.podAnnotations) .Values.controller.podAnnotations) }}
annotations:
{{- toYaml . | nindent 8 }}
{{- range $key, $value := . }}
{{ $key }}: {{ $value | quote }}
{{- end }}
{{- end }}
labels:
{{- include "argo-rollouts.selectorLabels" . | nindent 8 }}

View file

@ -16,9 +16,11 @@ spec:
replicas: {{ .Values.dashboard.replicas }}
template:
metadata:
{{- with .Values.podAnnotations }}
{{- with (mergeOverwrite (deepCopy .Values.podAnnotations) .Values.dashboard.podAnnotations) }}
annotations:
{{- toYaml . | nindent 8 }}
{{- range $key, $value := . }}
{{ $key }}: {{ $value | quote }}
{{- end }}
{{- end }}
labels:
{{- include "argo-rollouts.selectorLabels" . | nindent 8 }}

View file

@ -41,6 +41,8 @@ extraObjects: []
controller:
# -- Value of label `app.kubernetes.io/component`
component: rollouts-controller
# -- Annotations to be added to application controller pods
podAnnotations: {}
# -- [Node selector]
nodeSelector: {}
# -- [Tolerations] for use with node taints
@ -164,7 +166,7 @@ serviceAccount:
# -- Annotations to be added to all CRDs
crdAnnotations: {}
# -- Annotations to be added to the Rollout pods
# -- Annotations for the all deployed pods
podAnnotations: {}
# -- Security Context to set on pod level
@ -217,6 +219,8 @@ dashboard:
readonly: false
# -- Value of label `app.kubernetes.io/component`
component: rollouts-dashboard
# -- Annotations to be added to application dashboard pods
podAnnotations: {}
# -- [Node selector]
nodeSelector: {}
# -- [Tolerations] for use with node taints