Enable the possiblity to optionally add extra labels to k8s resources
This commit is contained in:
parent
209c441725
commit
610217e47f
|
|
@ -13,4 +13,7 @@ labels:
|
||||||
app.kubernetes.io/name: "{{ template "nfs.name" . }}"
|
app.kubernetes.io/name: "{{ template "nfs.name" . }}"
|
||||||
app.kubernetes.io/version: "{{ .Chart.AppVersion }}"
|
app.kubernetes.io/version: "{{ .Chart.AppVersion }}"
|
||||||
helm.sh/chart: "{{ .Chart.Name }}-{{ .Chart.Version | replace "+" "_" }}"
|
helm.sh/chart: "{{ .Chart.Name }}-{{ .Chart.Version | replace "+" "_" }}"
|
||||||
|
{{- if .Values.extraLabels.enabled }}
|
||||||
|
{{ toYaml .Values.extraLabels.labels | indent 2 -}}
|
||||||
|
{{- end }}
|
||||||
{{- end -}}
|
{{- end -}}
|
||||||
|
|
@ -1,3 +1,7 @@
|
||||||
|
extraLabels:
|
||||||
|
enabled: false
|
||||||
|
labels: {}
|
||||||
|
|
||||||
image:
|
image:
|
||||||
nfs:
|
nfs:
|
||||||
repository: mcr.microsoft.com/k8s/csi/nfs-csi
|
repository: mcr.microsoft.com/k8s/csi/nfs-csi
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue