helm-charts/charts/stable/kavita/templates/pvc.yaml
0x6b-dev 3a852c326a
All checks were successful
checks / check and test (push) Successful in 26s
kavita first attempt
2023-07-01 02:06:16 +10:00

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 }}