Skip to content

Commit 23c664f

Browse files
committed
chart: Add option to set nfs root volume name.
Signed-off-by: Robin Elfrink <[email protected]>
1 parent 5e1b342 commit 23c664f

File tree

4 files changed

+5
-3
lines changed

4 files changed

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

charts/nfs-subdir-external-provisioner/README.md

+1
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,7 @@ The following tables lists the configurable parameters of this chart and their d
7070
| `nfs.server` | Hostname of the NFS server (required) | null (ip or hostname) |
7171
| `nfs.path` | Basepath of the mount point to be used | `/nfs-storage` |
7272
| `nfs.mountOptions` | Mount options (e.g. 'nfsvers=3') | null |
73+
| `nfs.volumeName` | Volume name used inside the pods | `nfs-subdir-external-provisioner-root` |
7374
| `resources` | Resources required (e.g. CPU, memory) | `{}` |
7475
| `rbac.create` | Use Role-based Access Control | `true` |
7576
| `podSecurityPolicy.enabled` | Create & use Pod Security Policy resources | `false` |

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

+2-2
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ spec:
4444
image: "{{ .Values.image.repository }}:{{ .Values.image.tag }}"
4545
imagePullPolicy: {{ .Values.image.pullPolicy }}
4646
volumeMounts:
47-
- name: nfs-subdir-external-provisioner-root
47+
- name: {{ .Values.nfs.volumeName }}
4848
mountPath: /persistentvolumes
4949
env:
5050
- name: PROVISIONER_NAME
@@ -62,7 +62,7 @@ spec:
6262
{{ toYaml . | indent 12 }}
6363
{{- end }}
6464
volumes:
65-
- name: nfs-subdir-external-provisioner-root
65+
- name: {{ .Values.nfs.volumeName }}
6666
{{- if .Values.buildMode }}
6767
emptyDir: {}
6868
{{- else if .Values.nfs.mountOptions }}

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

+1
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ nfs:
1111
server:
1212
path: /nfs-storage
1313
mountOptions:
14+
volumeName: nfs-subdir-external-provisioner-root
1415

1516
# For creating the StorageClass automatically:
1617
storageClass:

0 commit comments

Comments
 (0)