support for ephemeral storage

This commit is contained in:
pi3ch 2022-09-10 10:16:50 +10:00
parent 6547aee98e
commit d26bfdea13
2 changed files with 5 additions and 2 deletions

View File

@ -1,3 +1,4 @@
{{- if .Values.persistence.enabled -}}
{{ if and (.Values.config.DRONE_DATABASE_DRIVER | default "sqlite3" | eq "sqlite3") (not .Values.persistence.existingClaim) }}
apiVersion: v1
kind: PersistentVolumeClaim
@ -15,3 +16,4 @@ spec:
storageClassName: {{ .Values.persistence.storageClass | quote }}
{{- end }}
{{- end }}
{{- end -}}

View File

@ -576,6 +576,7 @@ affinity: {}
# persistence is only required when config.DATABASE_DRIVER is sqlite3 or
# undefined.
persistence:
enabled: true
annotation: {}
# existingClaim:
size: 5Gi