charts/radarr/templates/movies-pvc.yaml
Jeff Billimek 3f82503a9e fixing typos
Signed-off-by: Jeff Billimek <jeff@billimek.com>
2018-11-05 00:22:20 -05:00

25 lines
839 B
YAML

{{- if and .Values.persistence.movies.enabled (not .Values.persistence.movies.existingClaim) }}
kind: PersistentVolumeClaim
apiVersion: v1
metadata:
name: {{ template "radarr.fullname" . }}-movies
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.movies.accessMode | quote }}
resources:
requests:
storage: {{ .Values.persistence.movies.size | quote }}
{{- if .Values.persistence.movies.storageClass }}
{{- if (eq "-" .Values.persistence.movies.storageClass) }}
storageClassName: ""
{{- else }}
storageClassName: "{{ .Values.persistence.movies.storageClass }}"
{{- end }}
{{- end }}
{{- end -}}