* 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
|
||||
accessModes:
|
||||
- {{ .Values.storageClass.accessModes }}
|
||||
persistentVolumeReclaimPolicy: {{ .Values.storageClass.reclaimPolicy }}
|
||||
persistentVolumeReclaimPolicy: {{ .Values.nfs.reclaimPolicy }}
|
||||
storageClassName: ""
|
||||
{{- if .Values.nfs.mountOptions }}
|
||||
mountOptions:
|
||||
|
|
|
|||
|
|
@ -12,6 +12,7 @@ nfs:
|
|||
path: /nfs-storage
|
||||
mountOptions:
|
||||
volumeName: nfs-subdir-external-provisioner-root
|
||||
reclaimPolicy: Delete # Reclaim policy for the main nfs volume
|
||||
|
||||
# For creating the StorageClass automatically:
|
||||
storageClass:
|
||||
|
|
|
|||
Loading…
Reference in New Issue