Added existing claim

This commit is contained in:
Jon Ervine
2021-02-14 09:32:56 +08:00
parent 6ee513c363
commit 6b7dd00624
3 changed files with 14 additions and 6 deletions
+5 -1
View File
@@ -48,9 +48,13 @@ spec:
mountPath: /movies
subPath: movies
volumes:
{{- if and .Values.config.persistence.enabled .Values.config.persistence.existingClaim }}
- name: radarr-config
persistentVolumeClaim:
claimName: {{ .Values.config.configPvc }}
{{- with .Values.config.persistence.existingClaim }}
claimName: {{ tpl . $ }}
{{- end }}
{{- end }}
- name: radarr-media
persistentVolumeClaim:
claimName: {{ .Values.mediaPvc }}