Files
helm-charts/charts/nfs-client-provisioner/templates/persistentvolume.yaml
Andrew Williams a29c9d7cff [nfs-client-provisioner] Import from helm/stable repo (#11)
* Import nfs-client-provisioner from helm/stable repo

* Update chart testing

* Correct testing
2021-01-01 13:46:14 +00:00

26 lines
678 B
YAML

{{ if .Values.nfs.mountOptions -}}
apiVersion: v1
kind: PersistentVolume
metadata:
name: pv-{{ template "nfs-client-provisioner.fullname" . }}
labels:
nfs-client-provisioner: {{ template "nfs-client-provisioner.fullname" . }}
spec:
capacity:
storage: 10Mi
volumeMode: Filesystem
accessModes:
- {{ .Values.storageClass.accessModes }}
persistentVolumeReclaimPolicy: {{ .Values.storageClass.reclaimPolicy }}
storageClassName: ""
{{- if .Values.nfs.mountOptions }}
mountOptions:
{{- range .Values.nfs.mountOptions }}
- {{ . }}
{{- end }}
{{- end }}
nfs:
server: {{ .Values.nfs.server }}
path: {{ .Values.nfs.path }}
{{ end -}}