Skip to content

Commit

Permalink
Merge pull request #6 from equinor/feature/template_for_labels
Browse files Browse the repository at this point in the history
extraLabels as tpl
  • Loading branch information
koropets authored Mar 13, 2023
2 parents 4be2738 + 68963ae commit 347c3d0
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion charts/gordo/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
apiVersion: v2
name: gordo
appVersion: "2.0.0"
version: 0.2.0
version: 0.2.1
description: A Helm chart for Gordo
type: application
home: https://github.com/equinor/gordo-helm
Expand Down
5 changes: 4 additions & 1 deletion charts/gordo/templates/_helpers.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,10 @@ app.kubernetes.io/version: {{ .context.Chart.AppVersion | quote }}
{{- end }}
app.kubernetes.io/managed-by: {{ .context.Release.Service }}
{{- with .context.Values.extraLabels }}
{{ toYaml . }}
{{- range $name, $label := . }}
{{- $v := tpl $label $.context }}
{{ $name }}: {{ $v | quote }}
{{- end }}
{{- end }}
{{- end }}

Expand Down

0 comments on commit 347c3d0

Please sign in to comment.