Support setting pod annotations separately on controller and dashboard
Signed-off-by: Khanh Ngo <k@ndk.name>
This commit is contained in:
parent
ceb6011cb6
commit
d2ce5d0add
3 changed files with 13 additions and 5 deletions
|
@ -15,9 +15,11 @@ spec:
|
||||||
replicas: {{ .Values.controller.replicas }}
|
replicas: {{ .Values.controller.replicas }}
|
||||||
template:
|
template:
|
||||||
metadata:
|
metadata:
|
||||||
{{- with .Values.podAnnotations }}
|
{{- with (mergeOverwrite (deepCopy .Values.podAnnotations) .Values.controller.podAnnotations) }}
|
||||||
annotations:
|
annotations:
|
||||||
{{- toYaml . | nindent 8 }}
|
{{- range $key, $value := . }}
|
||||||
|
{{ $key }}: {{ $value | quote }}
|
||||||
|
{{- end }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
labels:
|
labels:
|
||||||
{{- include "argo-rollouts.selectorLabels" . | nindent 8 }}
|
{{- include "argo-rollouts.selectorLabels" . | nindent 8 }}
|
||||||
|
|
|
@ -16,9 +16,11 @@ spec:
|
||||||
replicas: {{ .Values.dashboard.replicas }}
|
replicas: {{ .Values.dashboard.replicas }}
|
||||||
template:
|
template:
|
||||||
metadata:
|
metadata:
|
||||||
{{- with .Values.podAnnotations }}
|
{{- with (mergeOverwrite (deepCopy .Values.podAnnotations) .Values.dashboard.podAnnotations) }}
|
||||||
annotations:
|
annotations:
|
||||||
{{- toYaml . | nindent 8 }}
|
{{- range $key, $value := . }}
|
||||||
|
{{ $key }}: {{ $value | quote }}
|
||||||
|
{{- end }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
labels:
|
labels:
|
||||||
{{- include "argo-rollouts.selectorLabels" . | nindent 8 }}
|
{{- include "argo-rollouts.selectorLabels" . | nindent 8 }}
|
||||||
|
|
|
@ -41,6 +41,8 @@ extraObjects: []
|
||||||
controller:
|
controller:
|
||||||
# -- Value of label `app.kubernetes.io/component`
|
# -- Value of label `app.kubernetes.io/component`
|
||||||
component: rollouts-controller
|
component: rollouts-controller
|
||||||
|
# -- Annotations to be added to application controller pods
|
||||||
|
podAnnotations: {}
|
||||||
# -- [Node selector]
|
# -- [Node selector]
|
||||||
nodeSelector: {}
|
nodeSelector: {}
|
||||||
# -- [Tolerations] for use with node taints
|
# -- [Tolerations] for use with node taints
|
||||||
|
@ -164,7 +166,7 @@ serviceAccount:
|
||||||
# -- Annotations to be added to all CRDs
|
# -- Annotations to be added to all CRDs
|
||||||
crdAnnotations: {}
|
crdAnnotations: {}
|
||||||
|
|
||||||
# -- Annotations to be added to the Rollout pods
|
# -- Annotations for the all deployed pods
|
||||||
podAnnotations: {}
|
podAnnotations: {}
|
||||||
|
|
||||||
# -- Security Context to set on pod level
|
# -- Security Context to set on pod level
|
||||||
|
@ -217,6 +219,8 @@ dashboard:
|
||||||
readonly: false
|
readonly: false
|
||||||
# -- Value of label `app.kubernetes.io/component`
|
# -- Value of label `app.kubernetes.io/component`
|
||||||
component: rollouts-dashboard
|
component: rollouts-dashboard
|
||||||
|
# -- Annotations to be added to application dashboard pods
|
||||||
|
podAnnotations: {}
|
||||||
# -- [Node selector]
|
# -- [Node selector]
|
||||||
nodeSelector: {}
|
nodeSelector: {}
|
||||||
# -- [Tolerations] for use with node taints
|
# -- [Tolerations] for use with node taints
|
||||||
|
|
Loading…
Reference in a new issue