23 lines
564 B
YAML
23 lines
564 B
YAML
{{- 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 }}
|