| {{- if and .Values.persistence.enabled (not .Values.persistence.existingClaim) -}} |
| kind: PersistentVolumeClaim |
| name: {{ include "common.fullname" . }} |
| namespace: {{ include "common.namespace" . }} |
| app: {{ include "common.name" . }} |
| chart: "{{ .Chart.Name }}-{{ .Chart.Version }}" |
| release: "{{ .Release.Name }}" |
| heritage: "{{ .Release.Service }}" |
| {{- if .Values.persistence.annotations }} |
| {{ toYaml .Values.persistence.annotations | indent 4 }} |
| name: {{ include "common.fullname" . }} |
| - {{ .Values.persistence.accessMode }} |
| storage: {{ .Values.persistence.size }} |
| {{- if .Values.persistence.storageClass }} |
| {{- if (eq "-" .Values.persistence.storageClass) }} |
| storageClassName: "{{ .Values.persistence.storageClass }}" |