Skip to content

Commit

Permalink
Merge pull request #100 from yonatankahana/podlabels
Browse files Browse the repository at this point in the history
Use podLabels with user defined labels in deployment pod template
  • Loading branch information
k8s-ci-robot committed Jun 29, 2021
2 parents 65ce889 + 6b5f99c commit 5c0dd02
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 2 deletions.
2 changes: 1 addition & 1 deletion charts/nfs-subdir-external-provisioner/Chart.yaml
Expand Up @@ -3,7 +3,7 @@ appVersion: 4.0.2
description: nfs-subdir-external-provisioner is an automatic provisioner that used your *already configured* NFS server, automatically creating Persistent Volumes.
name: nfs-subdir-external-provisioner
home: https://github.com/kubernetes-sigs/nfs-subdir-external-provisioner
version: 4.0.11
version: 4.0.12
kubeVersion: ">=1.9.0-0"
sources:
- https://github.com/kubernetes-sigs/nfs-subdir-external-provisioner
Expand Down
10 changes: 10 additions & 0 deletions charts/nfs-subdir-external-provisioner/templates/_helpers.tpl
Expand Up @@ -73,6 +73,16 @@ heritage: {{ .Release.Service }}
{{- end }}
{{- end }}

{{/*
Pod template labels
*/}}
{{- define "nfs-subdir-external-provisioner.podLabels" -}}
{{ include "nfs-subdir-external-provisioner.selectorLabels" . }}
{{- with .Values.labels }}
{{- toYaml . | nindent 0 }}
{{- end }}
{{- end }}

{{/*
Selector labels
*/}}
Expand Down
Expand Up @@ -21,7 +21,7 @@ spec:
scheduler.alpha.kubernetes.io/tolerations: '{{ toJson .Values.tolerations }}'
{{- end }}
labels:
{{- include "nfs-subdir-external-provisioner.selectorLabels" . | nindent 8 }}
{{- include "nfs-subdir-external-provisioner.podLabels" . | nindent 8 }}
spec:
serviceAccountName: {{ template "nfs-subdir-external-provisioner.serviceAccountName" . }}
{{- if .Values.nodeSelector }}
Expand Down

0 comments on commit 5c0dd02

Please sign in to comment.