Add optional extra labels to k8s resources (#284)
* Enable the possiblity to optionally add extra labels to k8s resources * Package lastest helm chart with extra labels changes * Address review comments - Rename extraLabels to customLabels - remove enabled field - repackage helm chart
This commit is contained in:
parent
7388834e52
commit
0164e0b484
Binary file not shown.
@ -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.customLabels }}
|
||||||
|
{{ toYaml .Values.customLabels | indent 2 -}}
|
||||||
|
{{- end }}
|
||||||
{{- end -}}
|
{{- end -}}
|
||||||
@ -1,3 +1,4 @@
|
|||||||
|
customLabels: {}
|
||||||
image:
|
image:
|
||||||
nfs:
|
nfs:
|
||||||
repository: mcr.microsoft.com/k8s/csi/nfs-csi
|
repository: mcr.microsoft.com/k8s/csi/nfs-csi
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user