forked from coo-ops.space/helm-charts
28 lines
762 B
YAML
28 lines
762 B
YAML
{{- if and .Values.persistence.enabled (not .Values.persistence.existingClaim) }}
|
|
apiVersion: v1
|
|
kind: PersistentVolumeClaim
|
|
metadata:
|
|
namespace: {{ .Values.namespace }}
|
|
name: {{ include "kavita.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 "kavita.persistence.storageClass" . | indent 2 }}
|
|
resources:
|
|
requests:
|
|
storage: {{ .Values.persistence.size | quote }}
|
|
{{- end }} |