{{- if .Values.persistence.enabled }} {{- $fullName := include "cheminee.fullname" . -}} apiVersion: v1 kind: PersistentVolumeClaim metadata: name: {{ $fullName }}-data labels: {{- include "cheminee.labels" . | nindent 4 }} {{- with .Values.persistence.labels }} {{- toYaml . | nindent 4 }} {{- end }} {{- with .Values.persistence.annotations }} annotations: {{- toYaml . | nindent 4 }} {{- end }} spec: accessModes: - ReadWriteOnce {{- with .Values.persistence.storageClassName }} storageClassName: {{ . }} {{- end }} resources: requests: storage: {{ .Values.persistence.storageSize }} {{- end }}