You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
22 lines
587 B
22 lines
587 B
3 years ago
|
{{- 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 }}
|