Fix to work with existing labels
Signed-off-by: mpeters0n <2matthew.peterson@gmail.com>
This commit is contained in:
parent
d1dd1ec5d8
commit
3fc90b9357
2 changed files with 2 additions and 6 deletions
|
@ -9,11 +9,9 @@ metadata:
|
||||||
{{- end }}
|
{{- end }}
|
||||||
name: {{ include "argo-rollouts.fullname" . }}
|
name: {{ include "argo-rollouts.fullname" . }}
|
||||||
namespace: {{ .Release.Namespace | quote }}
|
namespace: {{ .Release.Namespace | quote }}
|
||||||
{{- with (mergeOverwrite (deepCopy .Values.global.deploymentLabels) .Values.controller.deploymentLabels) }}
|
|
||||||
labels:
|
labels:
|
||||||
{{- range $key, $value := . }}
|
{{- range $key, $value := (mergeOverwrite (deepCopy .Values.global.deploymentLabels) .Values.controller.deploymentLabels) }}
|
||||||
{{ $key }}: {{ $value | quote }}
|
{{ $key }}: {{ $value | quote }}
|
||||||
{{- end }}
|
|
||||||
{{- end }}
|
{{- end }}
|
||||||
app.kubernetes.io/component: {{ .Values.controller.component }}
|
app.kubernetes.io/component: {{ .Values.controller.component }}
|
||||||
{{- include "argo-rollouts.labels" . | nindent 4 }}
|
{{- include "argo-rollouts.labels" . | nindent 4 }}
|
||||||
|
|
|
@ -10,11 +10,9 @@ metadata:
|
||||||
{{- end }}
|
{{- end }}
|
||||||
name: {{ include "argo-rollouts.fullname" . }}-dashboard
|
name: {{ include "argo-rollouts.fullname" . }}-dashboard
|
||||||
namespace: {{ .Release.Namespace | quote }}
|
namespace: {{ .Release.Namespace | quote }}
|
||||||
{{- with (mergeOverwrite (deepCopy .Values.global.deploymentLabels) .Values.dashboard.deploymentLabels) }}
|
|
||||||
labels:
|
labels:
|
||||||
{{- range $key, $value := . }}
|
{{- range $key, $value := (mergeOverwrite (deepCopy .Values.global.deploymentLabels) .Values.dashboard.deploymentLabels) }}
|
||||||
{{ $key }}: {{ $value | quote }}
|
{{ $key }}: {{ $value | quote }}
|
||||||
{{- end }}
|
|
||||||
{{- end }}
|
{{- end }}
|
||||||
app.kubernetes.io/component: {{ .Values.dashboard.component }}
|
app.kubernetes.io/component: {{ .Values.dashboard.component }}
|
||||||
{{- include "argo-rollouts.labels" . | nindent 4 }}
|
{{- include "argo-rollouts.labels" . | nindent 4 }}
|
||||||
|
|
Loading…
Reference in a new issue