Skip to content

Commit

Permalink
allow for arbitrary labels in chart
Browse files Browse the repository at this point in the history
  • Loading branch information
Jamie Wiebe committed Nov 23, 2022
1 parent 243ff47 commit e703c51
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion charts/redisoperator/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ appVersion: 1.2.2
apiVersion: v1
description: A Helm chart for the Spotahome Redis Operator
name: redis-operator
version: 3.2.4
version: 3.2.5
home: https://github.com/spotahome/redis-operator
keywords:
- "golang"
Expand Down
5 changes: 4 additions & 1 deletion charts/redisoperator/templates/_helpers.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,9 @@ app.kubernetes.io/version: {{ .Chart.AppVersion | quote }}
{{- end }}
app.kubernetes.io/managed-by: {{ .Release.Service }}
app.kubernetes.io/part-of: {{ include "chart.name" . }}
{{- range $k, $v := .Values.labels }}
{{ $k }}: {{ $v }}
{{- end }}
{{- end -}}

{{/*
Expand Down Expand Up @@ -72,4 +75,4 @@ Create the name of the service account to use
{{- with .Values.imageCredentials }}
{{- printf "{\"auths\":{\"%s\":{\"username\":\"%s\",\"password\":\"%s\",\"email\":\"%s\",\"auth\":\"%s\"}}}" .registry .username .password .email (printf "%s:%s" .username .password | b64enc) | b64enc }}
{{- end }}
{{- end }}
{{- end }}

0 comments on commit e703c51

Please sign in to comment.