From 68f6e5f1c0c02c7f59ec9754e991e3b41718a2f1 Mon Sep 17 00:00:00 2001 From: Alex Manning Date: Fri, 3 Mar 2023 22:14:58 +0000 Subject: [PATCH] Correct PVC names. --- charts/homeassistant/templates/deployment.yaml | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/charts/homeassistant/templates/deployment.yaml b/charts/homeassistant/templates/deployment.yaml index bb4e5d1..2ac5770 100644 --- a/charts/homeassistant/templates/deployment.yaml +++ b/charts/homeassistant/templates/deployment.yaml @@ -104,10 +104,18 @@ spec: volumes: - name: config persistentVolumeClaim: + {{- if not .Values.pvc.config.existingClaim }} claimName: {{ include "homeassistant.fullname" . }}-config + {{- else }} + claimName: {{ .Values.pvc.config.existingClaim }} + {{- end }} - name: storage persistentVolumeClaim: + {{- if not .Values.pvc.storage.existingClaim }} claimName: {{ include "homeassistant.fullname" . }}-storage + {{- else }} + claimName: {{ .Values.pvc.storage.existingClaim }} + {{- end }} - name: init configMap: name: {{ include "homeassistant.fullname" . }}-initscript