fixing deluge downloads-pvc

Signed-off-by: Jeff Billimek <jeff@billimek.com>
This commit is contained in:
Jeff Billimek 2018-11-04 20:43:54 -05:00
parent 3ded6b6f1f
commit ef10e7f945
2 changed files with 7 additions and 7 deletions

View File

@ -2,7 +2,7 @@ apiVersion: v1
appVersion: 145
description: Deluge is a lightweight, Free Software, cross-platform BitTorrent client.
name: deluge
version: 0.1.1
version: 0.1.2
keywords:
- deluge
- deluge-torrent

View File

@ -1,5 +1,5 @@
{{- if and .Values.persistence.enabled (not .Values.persistence.existingClaim) }}
{{- if and .Values.persistence.downloads.enabled (not .Values.persistence.downloads.existingClaim) }}
kind: PersistentVolumeClaim
apiVersion: v1
metadata:
@ -11,15 +11,15 @@ metadata:
heritage: "{{ .Release.Service }}"
spec:
accessModes:
- {{ .Values.persistence.accessMode | quote }}
- {{ .Values.persistence.downloads.accessMode | quote }}
resources:
requests:
storage: {{ .Values.persistence.size | quote }}
{{- if .Values.persistence.storageClass }}
{{- if (eq "-" .Values.persistence.storageClass) }}
storage: {{ .Values.persistence.downloads.size | quote }}
{{- if .Values.persistence.downloads.storageClass }}
{{- if (eq "-" .Values.persistence.downloads.storageClass) }}
storageClassName: ""
{{- else }}
storageClassName: "{{ .Values.persistence.storageClass }}"
storageClassName: "{{ .Values.persistence.downloads.storageClass }}"
{{- end }}
{{- end }}
{{- end -}}