drone-charts/templates/persistentVolumeClaim.yaml
Markus Pesch dbe08ba918
All checks were successful
continuous-integration/drone/push Build is passing
fix: use drone.fullname for pvc
2021-09-26 16:44:27 +02:00

17 lines
540 B
YAML

{{ if and (.Values.config.DRONE_DATABASE_DRIVER | default "sqlite3" | eq "sqlite3") (not .Values.persistence.existingClaim) }}
apiVersion: v1
kind: PersistentVolumeClaim
metadata:
name: {{ include "drone.fullname" . }}
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 }}