Skip to content

Commit

Permalink
Merge pull request #44 from replicatedhq/laverya/sc-103323/add-chart-…
Browse files Browse the repository at this point in the history
…labels

add the ability to specify additional labels
  • Loading branch information
laverya authored May 1, 2024
2 parents b615471 + 85d5f89 commit a4ea635
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
4 changes: 4 additions & 0 deletions templates/_helpers.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,10 @@ app.kubernetes.io/version: {{ .Chart.AppVersion | quote }}
kots.io/backup: velero
kots.io/kotsadm: "true"
app.kubernetes.io/managed-by: {{ .Release.Service }}
{{- if (gt (len .Values.labels) 0) -}}
{{ printf "\n"}}
{{ .Values.labels | toYaml }}
{{- end -}}
{{- end }}

{{/*
Expand Down
3 changes: 3 additions & 0 deletions values.yaml.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,9 @@ imagePullSecrets: []
nameOverride: ""
fullnameOverride: ""

# Additional labels to add to all chart resources
labels: {}

serviceAccount:
# Specifies whether a service account should be created
create: true
Expand Down

0 comments on commit a4ea635

Please sign in to comment.