{{- if and .Values.persistence.enabled .Values.msa.enabled }} apiVersion: v1 kind: PersistentVolumeClaim metadata: name: {{ include "saberes.fullname" . }}-postfixspool labels: {{- include "saberes.labels" . | nindent 4 }} spec: accessModes: - {{ .Values.msa.persistence.accessMode }} resources: requests: storage: {{ .Values.msa.persistence.size }} {{- if .Values.msa.persistence.storageClass }} {{- if (eq "-" .Values.msa.persistence.storageClass) }} storageClassName: "" {{- else }} storageClassName: "{{ .Values.msa.persistence.storageClass }}" {{- end }} {{- end }} {{- end }}