Skip to content

Commit 8e17ace

Browse files
authored
Merge pull request #171 from danieljkemp/securitycontext
Add securityContext options to Helm Chart, bump chart version - Related to Issue #97
2 parents 400c160 + 5c92c0a commit 8e17ace

File tree

3 files changed

+9
-1
lines changed

3 files changed

+9
-1
lines changed

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

+1-1
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.14
6+
version: 4.0.15
77
kubeVersion: ">=1.9.0-0"
88
sources:
99
- https://github.com/kubernetes-sigs/nfs-subdir-external-provisioner

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

+4
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,8 @@ spec:
2424
{{- include "nfs-subdir-external-provisioner.podLabels" . | nindent 8 }}
2525
spec:
2626
serviceAccountName: {{ template "nfs-subdir-external-provisioner.serviceAccountName" . }}
27+
securityContext:
28+
{{- toYaml .Values.podSecurityContext | nindent 8 }}
2729
{{- if .Values.nodeSelector }}
2830
nodeSelector:
2931
{{ toYaml .Values.nodeSelector | indent 8 }}
@@ -43,6 +45,8 @@ spec:
4345
- name: {{ .Chart.Name }}
4446
image: "{{ .Values.image.repository }}:{{ .Values.image.tag }}"
4547
imagePullPolicy: {{ .Values.image.pullPolicy }}
48+
securityContext:
49+
{{- toYaml .Values.securityContext | nindent 12 }}
4650
volumeMounts:
4751
- name: {{ .Values.nfs.volumeName }}
4852
mountPath: /persistentvolumes

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

+4
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,10 @@ podAnnotations: {}
7474
## Set pod priorityClassName
7575
# priorityClassName: ""
7676

77+
podSecurityContext: {}
78+
79+
securityContext: {}
80+
7781
serviceAccount:
7882
# Specifies whether a ServiceAccount should be created
7983
create: true

0 commit comments

Comments
 (0)