Skip to content

Commit 5c0dd02

Browse files
authored
Merge pull request #100 from yonatankahana/podlabels
Use podLabels with user defined labels in deployment pod template
2 parents 65ce889 + 6b5f99c commit 5c0dd02

File tree

3 files changed

+12
-2
lines changed

3 files changed

+12
-2
lines changed

charts/nfs-subdir-external-provisioner/Chart.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ appVersion: 4.0.2
33
description: nfs-subdir-external-provisioner is an automatic provisioner that used your *already configured* NFS server, automatically creating Persistent Volumes.
44
name: nfs-subdir-external-provisioner
55
home: https://github.com/kubernetes-sigs/nfs-subdir-external-provisioner
6-
version: 4.0.11
6+
version: 4.0.12
77
kubeVersion: ">=1.9.0-0"
88
sources:
99
- https://github.com/kubernetes-sigs/nfs-subdir-external-provisioner

charts/nfs-subdir-external-provisioner/templates/_helpers.tpl

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,16 @@ heritage: {{ .Release.Service }}
7373
{{- end }}
7474
{{- end }}
7575

76+
{{/*
77+
Pod template labels
78+
*/}}
79+
{{- define "nfs-subdir-external-provisioner.podLabels" -}}
80+
{{ include "nfs-subdir-external-provisioner.selectorLabels" . }}
81+
{{- with .Values.labels }}
82+
{{- toYaml . | nindent 0 }}
83+
{{- end }}
84+
{{- end }}
85+
7686
{{/*
7787
Selector labels
7888
*/}}

charts/nfs-subdir-external-provisioner/templates/deployment.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ spec:
2121
scheduler.alpha.kubernetes.io/tolerations: '{{ toJson .Values.tolerations }}'
2222
{{- end }}
2323
labels:
24-
{{- include "nfs-subdir-external-provisioner.selectorLabels" . | nindent 8 }}
24+
{{- include "nfs-subdir-external-provisioner.podLabels" . | nindent 8 }}
2525
spec:
2626
serviceAccountName: {{ template "nfs-subdir-external-provisioner.serviceAccountName" . }}
2727
{{- if .Values.nodeSelector }}

0 commit comments

Comments
 (0)