charts/qbittorrent/templates/config-pvc.yaml
Jeff Billimek af5e168703
adding qbittorrent chart (#87)
* adding qbittorrent chart

* fixing linting

Signed-off-by: Jeff Billimek <jeff@billimek.com>

* qbittorrent tweaks
2019-10-29 23:02:14 -04:00

24 lines
853 B
YAML

{{- if and .Values.persistence.config.enabled (not .Values.persistence.config.existingClaim) }}
kind: PersistentVolumeClaim
apiVersion: v1
metadata:
name: {{ template "qbittorrent.fullname" . }}-config
labels:
app.kubernetes.io/name: {{ include "qbittorrent.name" . }}
helm.sh/chart: {{ include "qbittorrent.chart" . }}
app.kubernetes.io/instance: {{ .Release.Name }}
app.kubernetes.io/managed-by: {{ .Release.Service }}
spec:
accessModes:
- {{ .Values.persistence.config.accessMode | quote }}
resources:
requests:
storage: {{ .Values.persistence.config.size | quote }}
{{- if .Values.persistence.config.storageClass }}
{{- if (eq "-" .Values.persistence.config.storageClass) }}
storageClassName: ""
{{- else }}
storageClassName: "{{ .Values.persistence.config.storageClass }}"
{{- end }}
{{- end }}
{{- end -}}