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:
Javier Perez Rubio 2022-02-15 06:45:38 +01:00 committed by GitHub
parent 7388834e52
commit 0164e0b484
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 5 additions and 1 deletions

View File

@ -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 "+" "_" }}"
{{- end -}} {{- if .Values.customLabels }}
{{ toYaml .Values.customLabels | indent 2 -}}
{{- end }}
{{- end -}}

View File

@ -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