20 lines
512 B
YAML
20 lines
512 B
YAML
|
{{- if .Values.persistence.enabled }}
|
||
|
kind: PersistentVolumeClaim
|
||
|
apiVersion: v1
|
||
|
metadata:
|
||
|
name: {{ template "mongodb.fullname" . }}
|
||
|
spec:
|
||
|
accessModes:
|
||
|
- {{ .Values.persistence.accessMode | quote }}
|
||
|
resources:
|
||
|
requests:
|
||
|
storage: {{ .Values.persistence.size | quote }}
|
||
|
{{- if .Values.persistence.storageClass }}
|
||
|
{{- if (eq "-" .Values.persistence.storageClass) }}
|
||
|
storageClassName: ""
|
||
|
{{- else }}
|
||
|
storageClassName: "{{ .Values.persistence.storageClass }}"
|
||
|
{{- end }}
|
||
|
{{- end }}
|
||
|
{{- end }}
|