2021-08-08 20:29:21 +00:00
|
|
|
{{ if and (.Values.config.DRONE_DATABASE_DRIVER | default "sqlite3" | eq "sqlite3") (not .Values.persistence.existingClaim) }}
|
2021-08-08 17:39:12 +00:00
|
|
|
apiVersion: v1
|
|
|
|
kind: PersistentVolumeClaim
|
|
|
|
metadata:
|
2021-09-26 14:44:27 +00:00
|
|
|
name: {{ include "drone.fullname" . }}
|
2021-08-08 17:39:12 +00:00
|
|
|
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 }}
|