* New value in values.yaml that allows you to have different reclaimPolicies for…

* 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
parent 0a8665a8
...@@ -12,7 +12,7 @@ spec: ...@@ -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: ...@@ -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:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment