forked from coo-ops.space/helm-charts
28 lines
766 B
YAML
28 lines
766 B
YAML
|
{{- if and .Values.persistence.enabled (not .Values.persistence.existingClaim) }}
|
||
|
apiVersion: v1
|
||
|
kind: PersistentVolumeClaim
|
||
|
metadata:
|
||
|
namespace: {{ .Values.namespace }}
|
||
|
name: {{ include "romm.fullname" . }}-pvc
|
||
|
{{- with .Values.persistence.annotations }}
|
||
|
annotations:
|
||
|
{{- range $key, $value := . }}
|
||
|
{{ $key }}: {{ $value }}
|
||
|
{{- end }}
|
||
|
{{- end }}
|
||
|
{{- with .Values.persistence.labels }}
|
||
|
labels:
|
||
|
{{- range $key, $value := . }}
|
||
|
{{ $key }}: {{ $value }}
|
||
|
{{- end }}
|
||
|
{{- end }}
|
||
|
spec:
|
||
|
accessModes:
|
||
|
{{- range .Values.persistence.accessModes }}
|
||
|
- {{ . | quote }}
|
||
|
{{- end }}
|
||
|
{{- include "romm.persistence.storageClass" . | indent 8 }}
|
||
|
resources:
|
||
|
requests:
|
||
|
storage: {{ .Values.persistence.size | quote }}
|
||
|
{{- end }}
|