Merge pull request #10 from pi3ch/master
All checks were successful
continuous-integration/drone/push Build is passing

support for ephemeral storage
This commit is contained in:
Markus Pesch 2022-09-10 19:41:53 +02:00 committed by GitHub
commit cb6a5021c8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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
@ -14,4 +15,5 @@ spec:
{{- if .Values.persistence.storageClass }}
storageClassName: {{ .Values.persistence.storageClass | quote }}
{{- end }}
{{- 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
@ -614,4 +615,4 @@ extraVolumeMounts: {}
# - name: custom-ca-anchor
# mountPath: /usr/local/share/ca-certificates
# - name: custom-tls-certificates
# mountPath: /etc/drone/tls
# mountPath: /etc/drone/tls