Enable the possiblity to optionally add extra labels to k8s resources

This commit is contained in:
javier 2022-02-11 16:33:07 +01:00
parent 209c441725
commit 610217e47f
2 changed files with 7 additions and 0 deletions

View File

@ -13,4 +13,7 @@ labels:
app.kubernetes.io/name: "{{ template "nfs.name" . }}"
app.kubernetes.io/version: "{{ .Chart.AppVersion }}"
helm.sh/chart: "{{ .Chart.Name }}-{{ .Chart.Version | replace "+" "_" }}"
{{- if .Values.extraLabels.enabled }}
{{ toYaml .Values.extraLabels.labels | indent 2 -}}
{{- end }}
{{- end -}}

View File

@ -1,3 +1,7 @@
extraLabels:
enabled: false
labels: {}
image:
nfs:
repository: mcr.microsoft.com/k8s/csi/nfs-csi