Skip to content

Commit

Permalink
fix(helm-chart): use a range finction instead of toYaml for commonLab…
Browse files Browse the repository at this point in the history
…els (#488)
  • Loading branch information
JohGirard authored Oct 9, 2023
1 parent 9067c4a commit 75d516d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
5 changes: 2 additions & 3 deletions .github/workflows/lint.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,8 @@ on:
- main
- v1.0.0
pull_request:
branches:
- main
- v1.0.0
types:
- unlocked

jobs:
typos-check:
Expand Down
4 changes: 3 additions & 1 deletion helm/yatai/templates/_helpers.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,9 @@ helm.sh/chart: {{ include "yatai.chart" . }}
app.kubernetes.io/version: {{ .Chart.AppVersion | quote }}
{{- end }}
app.kubernetes.io/managed-by: {{ .Release.Service }}
{{- toYaml .Values.commonLabels | nindent 0 }}
{{- range $key, $val := .Values.commonLabels }}
{{ $key }}: {{ $val }}
{{- end }}
{{- end }}

{{/*
Expand Down

0 comments on commit 75d516d

Please sign in to comment.