drone-charts/templates/persistentVolumeClaim.yaml
Markus Pesch ce624330c1
All checks were successful
continuous-integration/drone/push Build is passing
feat: support persistent volume
Add persistent volume for sqlite3 backend
2021-08-08 22:19:34 +02:00

17 lines
511 B
YAML

{{ if and (eq (default "sqlite3" .Values.config.DRONE_DATABASE_DRIVER) "sqlite3") (not .Values.persistence.existingClaim) }}
apiVersion: v1
kind: PersistentVolumeClaim
metadata:
name: drone
spec:
accessModes:
{{- range .Values.persistence.accessModes }}
- {{ . | quote }}
{{- end }}
resources:
requests:
storage: {{ .Values.persistence.size | quote }}
{{- if .Values.persistence.storageClass }}
storageClassName: {{ .Values.persistence.storageClass | quote }}
{{- end }}
{{- end }}