{{- if and .Values.database.postgres.enabled .Values.database.postgres.persistence.enabled }}
apiVersion: v1
kind: PersistentVolumeClaim
metadata:
  name: {{ include "model-registry.postgres.pvcName" . }}
spec:
  accessModes:
  - ReadWriteOnce
  resources:
    requests:
      storage: {{ .Values.database.postgres.persistence.size | quote }}
{{- end }}