2018-11-04 15:41:31 +00:00
|
|
|
|
2018-11-05 01:43:54 +00:00
|
|
|
{{- if and .Values.persistence.downloads.enabled (not .Values.persistence.downloads.existingClaim) }}
|
2018-11-04 15:41:31 +00:00
|
|
|
kind: PersistentVolumeClaim
|
|
|
|
apiVersion: v1
|
|
|
|
metadata:
|
|
|
|
name: {{ template "deluge.fullname" . }}-downloads
|
|
|
|
labels:
|
2018-11-07 04:04:25 +00:00
|
|
|
app.kubernetes.io/name: {{ include "deluge.name" . }}
|
|
|
|
helm.sh/chart: {{ include "deluge.chart" . }}
|
|
|
|
app.kubernetes.io/instance: {{ .Release.Name }}
|
|
|
|
app.kubernetes.io/managed-by: {{ .Release.Service }}
|
2018-11-04 15:41:31 +00:00
|
|
|
spec:
|
|
|
|
accessModes:
|
2018-11-05 01:43:54 +00:00
|
|
|
- {{ .Values.persistence.downloads.accessMode | quote }}
|
2018-11-04 15:41:31 +00:00
|
|
|
resources:
|
|
|
|
requests:
|
2018-11-05 01:43:54 +00:00
|
|
|
storage: {{ .Values.persistence.downloads.size | quote }}
|
|
|
|
{{- if .Values.persistence.downloads.storageClass }}
|
|
|
|
{{- if (eq "-" .Values.persistence.downloads.storageClass) }}
|
2018-11-04 15:41:31 +00:00
|
|
|
storageClassName: ""
|
|
|
|
{{- else }}
|
2018-11-05 01:43:54 +00:00
|
|
|
storageClassName: "{{ .Values.persistence.downloads.storageClass }}"
|
2018-11-04 15:41:31 +00:00
|
|
|
{{- end }}
|
|
|
|
{{- end }}
|
|
|
|
{{- end -}}
|