* New value in values.yaml that allows you to have different reclaimPolicies for the StorageClass and the NFS PV. Closes issue; https://github.com/kubernetes-sigs/nfs-subdir-external-provisioner/issues/128
This commit is contained in:
parent
0a8665a8ca
commit
584dc27a9e
|
|
@ -12,7 +12,7 @@ spec:
|
||||||
volumeMode: Filesystem
|
volumeMode: Filesystem
|
||||||
accessModes:
|
accessModes:
|
||||||
- {{ .Values.storageClass.accessModes }}
|
- {{ .Values.storageClass.accessModes }}
|
||||||
persistentVolumeReclaimPolicy: {{ .Values.storageClass.reclaimPolicy }}
|
persistentVolumeReclaimPolicy: {{ .Values.nfs.reclaimPolicy }}
|
||||||
storageClassName: ""
|
storageClassName: ""
|
||||||
{{- if .Values.nfs.mountOptions }}
|
{{- if .Values.nfs.mountOptions }}
|
||||||
mountOptions:
|
mountOptions:
|
||||||
|
|
|
||||||
|
|
@ -12,6 +12,7 @@ nfs:
|
||||||
path: /nfs-storage
|
path: /nfs-storage
|
||||||
mountOptions:
|
mountOptions:
|
||||||
volumeName: nfs-subdir-external-provisioner-root
|
volumeName: nfs-subdir-external-provisioner-root
|
||||||
|
reclaimPolicy: Delete # Reclaim policy for the main nfs volume
|
||||||
|
|
||||||
# For creating the StorageClass automatically:
|
# For creating the StorageClass automatically:
|
||||||
storageClass:
|
storageClass:
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue