mirror of
https://github.com/k8s-at-home/charts.git
synced 2025-01-24 16:09:08 +00:00
b0c6d8cfe9
Signed-off-by: Jeff Billimek <jeff@billimek.com>
25 lines
863 B
YAML
25 lines
863 B
YAML
|
|
{{- if and .Values.persistence.downloads.enabled (not .Values.persistence.downloads.existingClaim) }}
|
|
kind: PersistentVolumeClaim
|
|
apiVersion: v1
|
|
metadata:
|
|
name: {{ template "radarr.fullname" . }}-downloads
|
|
labels:
|
|
app.kubernetes.io/name: {{ include "radarr.name" . }}
|
|
helm.sh/chart: {{ include "radarr.chart" . }}
|
|
app.kubernetes.io/instance: {{ .Release.Name }}
|
|
app.kubernetes.io/managed-by: {{ .Release.Service }}
|
|
spec:
|
|
accessModes:
|
|
- {{ .Values.persistence.downloads.accessMode | quote }}
|
|
resources:
|
|
requests:
|
|
storage: {{ .Values.persistence.downloads.size | quote }}
|
|
{{- if .Values.persistence.downloads.storageClass }}
|
|
{{- if (eq "-" .Values.persistence.downloads.storageClass) }}
|
|
storageClassName: ""
|
|
{{- else }}
|
|
storageClassName: "{{ .Values.persistence.downloads.storageClass }}"
|
|
{{- end }}
|
|
{{- end }}
|
|
{{- end -}} |