Skip to content

Commit

Permalink
Helm: commonLabels is not available in podLabel, improved code (grafa…
Browse files Browse the repository at this point in the history
…na#9067)

Signed-off-by: fabio trigari <[email protected]>
  • Loading branch information
ftrigari committed Oct 26, 2024
1 parent 316f1bb commit a18ccc2
Showing 1 changed file with 3 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -208,8 +208,8 @@ Params:
ctx = . context
*/}}
{{- define "mimir.commonLabels" -}}
{{- if .ctx.Values.global.commonLabels }}
{{- toYaml .ctx.Values.global.commonLabels }}
{{- with .ctx.Values.global.commonLabels }}
{{- toYaml . }}
{{- end }}
{{- end -}}

Expand Down Expand Up @@ -255,7 +255,7 @@ name: "{{ .component }}-{{ .rolloutZoneName }}" {{- /* Currently required for ro
rollout-group: {{ .component }}
zone: {{ .rolloutZoneName }}
{{- end }}
{{ include "mimir.commonLabels" (dict "ctx" .ctx ) }}
{{ include "mimir.commonLabels" . }}
{{- end -}}

{{/*
Expand Down Expand Up @@ -309,7 +309,6 @@ name: "{{ .component }}-{{ .rolloutZoneName }}" {{- /* Currently required for ro
rollout-group: {{ .component }}
zone: {{ .rolloutZoneName }}
{{- end }}
{{ include "mimir.commonLabels" (dict "ctx" .ctx ) }}
{{- end -}}

{{/*
Expand Down

0 comments on commit a18ccc2

Please sign in to comment.