{{- if .Values.nuqPostgres.persistence.enabled }}
apiVersion: v1
kind: PersistentVolumeClaim
metadata:
  name: {{ include "firecrawl.fullname" . }}-nuq-postgres-pvc
  labels:
    app: {{ include "firecrawl.name" . }}-nuq-postgres
spec:
  accessModes:
    - ReadWriteOnce
  resources:
    requests:
      storage: {{ .Values.nuqPostgres.persistence.size | quote }}
  {{- if .Values.nuqPostgres.persistence.storageClass }}
  storageClassName: {{ .Values.nuqPostgres.persistence.storageClass | quote }}
  {{- end }}
{{- end }}
