Files
charts/bitnami/moodle/templates/pvc.yaml
Francisco de Paz Galán 4082ac08c9 [bitnami/moodle] NEW MAJOR: bump mariadb dependency and add standarizations (#3936)
* New major moodle

* Add moodledata_pvc to update instructions

* Add standarization and apply changes

* Fix deployment.yaml

* Update requirements and apply changes

* Fix volumeMounts

Co-authored-by: fdepaz <fdepaz@bitnami.com>
2020-10-12 11:45:03 +02:00

24 lines
881 B
YAML

{{- if and .Values.persistence.enabled (not .Values.persistence.existingClaim) -}}
kind: PersistentVolumeClaim
apiVersion: v1
metadata:
name: {{ include "common.names.fullname" . }}-moodle
labels: {{- include "common.labels.standard" . | nindent 4 }}
{{- if .Values.commonLabels }}
{{- include "common.tplvalues.render" ( dict "value" .Values.commonLabels "context" $ ) | nindent 4 }}
{{- end }}
{{- if .Values.commonAnnotations }}
annotations: {{- include "common.tplvalues.render" ( dict "value" .Values.commonAnnotations "context" $ ) | nindent 4 }}
{{- end }}
spec:
{{- if .Values.persistence.hostPath }}
storageClassName: ""
{{- end }}
accessModes:
- {{ .Values.persistence.accessMode | quote }}
resources:
requests:
storage: {{ .Values.persistence.size | quote }}
{{- include "moodle.storageClass" . | nindent 2 }}
{{- end -}}