stable/nfs-server-provisioner Add ability to specify pod Security Context settings (#22642)

* Add ability to specify Security Context settings for
NFS Server Provisioner.

Signed-off-by: Zoram Thanga <zoram@cloudera.com>

* Changed version number, and changed Helm value to
podSecurityContext to avoid confusion with container level
Security Context.

Signed-off-by: Zoram Thanga <zoram@cloudera.com>
This commit is contained in:
zoramthanga
2020-06-03 15:34:43 -07:00
committed by GitHub
parent b82916f9bc
commit fc076f7311
3 changed files with 6 additions and 1 deletions
+1 -1
View File
@@ -2,7 +2,7 @@ apiVersion: v1
appVersion: 2.3.0
description: nfs-server-provisioner is an out-of-tree dynamic provisioner for Kubernetes. You can use it to quickly & easily deploy shared storage that works almost anywhere.
name: nfs-server-provisioner
version: 1.0.0
version: 1.1.0
maintainers:
- name: kiall
email: kiall@macinnes.ie
+1
View File
@@ -82,6 +82,7 @@ their default values.
| `nodeSelector` | Map of node labels for pod assignment | `{}` |
| `tolerations` | List of node taints to tolerate | `[]` |
| `affinity` | Map of node/pod affinities | `{}` |
| `podSecurityContext` | Security context settings for nfs-server-provisioner pod (see https://kubernetes.io/docs/tasks/configure-pod-container/security-context/#set-the-security-context-for-a-pod) | `{}` |
```console
$ helm install stable/nfs-server-provisioner --name my-release \
@@ -99,6 +99,10 @@ spec:
resources:
{{- toYaml . | nindent 12 }}
{{- end }}
{{- with .Values.podSecurityContext }}
securityContext:
{{- toYaml . | nindent 8 }}
{{- end }}
{{- with .Values.nodeSelector }}
nodeSelector:
{{- toYaml . | nindent 8 }}