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