Add podLabels at the controller & dashboard level
This aligns with how podAnnotations works and allows for unique labels for each application at the pod level Signed-off-by: mitchell amihod <4623+meeech@users.noreply.github.com>
This commit is contained in:
parent
35bc505bec
commit
caa86078de
3 changed files with 6 additions and 2 deletions
|
@ -34,7 +34,7 @@ spec:
|
|||
labels:
|
||||
{{- include "argo-rollouts.selectorLabels" . | nindent 8 }}
|
||||
app.kubernetes.io/component: {{ .Values.controller.component }}
|
||||
{{- range $key, $value := .Values.podLabels }}
|
||||
{{- range $key, $value := (mergeOverwrite (deepCopy .Values.podLabels) .Values.controller.podLabels) }}
|
||||
{{ $key }}: {{ $value | quote }}
|
||||
{{- end }}
|
||||
spec:
|
||||
|
|
|
@ -35,7 +35,7 @@ spec:
|
|||
labels:
|
||||
{{- include "argo-rollouts.selectorLabels" . | nindent 8 }}
|
||||
app.kubernetes.io/component: {{ .Values.dashboard.component }}
|
||||
{{- range $key, $value := .Values.podLabels }}
|
||||
{{- range $key, $value := (mergeOverwrite (deepCopy .Values.podLabels) .Values.dashboard.podLabels) }}
|
||||
{{ $key }}: {{ $value | quote }}
|
||||
{{- end }}
|
||||
spec:
|
||||
|
|
|
@ -53,6 +53,8 @@ controller:
|
|||
deploymentLabels: {}
|
||||
# -- Annotations to be added to application controller pods
|
||||
podAnnotations: {}
|
||||
# Labels to be added to the application controller pods
|
||||
podLabels: {}
|
||||
# -- [Node selector]
|
||||
nodeSelector: {}
|
||||
# -- [Tolerations] for use with node taints
|
||||
|
@ -295,6 +297,8 @@ dashboard:
|
|||
deploymentLabels: {}
|
||||
# -- Annotations to be added to application dashboard pods
|
||||
podAnnotations: {}
|
||||
# Labels to be added to the application dashboard pods
|
||||
podLabels: {}
|
||||
# -- [Node selector]
|
||||
nodeSelector: {}
|
||||
# -- [Tolerations] for use with node taints
|
||||
|
|
Loading…
Reference in a new issue