{{- range .Values.exports }} --- apiVersion: v1 kind: PersistentVolumeClaim metadata: name: {{ $.Release.Name }}-{{ .name }}-pvc labels: {{- include "rook-nfs-server.labels" $ | nindent 4 }} spec: accessModes: - {{ .persistentVolumeClaim.accessMode | quote }} resources: requests: storage: {{ .persistentVolumeClaim.size | quote }} {{- if .persistentVolumeClaim.storageClass }} {{- if (eq "-" .persistentVolumeClaim.storageClass) }} storageClassName: "" {{- else }} storageClassName: "{{ .persistentVolumeClaim.storageClass }}" {{- end }} {{- end }} {{ end }}