infra4talos/apps-helm/drupal/templates/pvc.yaml

23 lines
564 B
YAML
Raw Permalink Normal View History

2023-12-07 15:28:12 +00:00
{{- if .Values.persistence.enabled -}}
{{- $fullName := include "drupal.fullname" . -}}
kind: PersistentVolumeClaim
apiVersion: v1
metadata:
labels:
{{- include "drupal.labels" . | nindent 4 }}
name: {{ $fullName }}-data
spec:
accessModes:
- ReadWriteOnce
{{- if .Values.persistence.storageClass }}
{{- if (eq "-" .Values.persistence.storageClass) }}
storageClassName: ""
{{- else }}
storageClassName: "{{ .Values.persistence.storageClass }}"
{{- end }}
{{- end }}
resources:
requests:
storage: {{ .Values.persistence.size }}
{{ end }}