mirror of
https://github.com/k8s-at-home/charts.git
synced 2025-01-24 16:09:08 +00:00
af5e168703
* adding qbittorrent chart * fixing linting Signed-off-by: Jeff Billimek <jeff@billimek.com> * qbittorrent tweaks
24 lines
853 B
YAML
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 -}} |