From 536d627faa5ae723e052541ab1aae5a5e5f9dd2b Mon Sep 17 00:00:00 2001 From: Alex Manning Date: Wed, 1 Mar 2023 21:51:46 +0000 Subject: [PATCH] Correct claim name --- charts/esphome/templates/deployment.yaml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/charts/esphome/templates/deployment.yaml b/charts/esphome/templates/deployment.yaml index 328ec64..ebd0bd7 100644 --- a/charts/esphome/templates/deployment.yaml +++ b/charts/esphome/templates/deployment.yaml @@ -66,4 +66,8 @@ spec: volumes: - name: config persistentVolumeClaim: + {{- if not .Values.pvc.existingClaim }} claimName: {{ include "esphome.fullname" . }}-config + {{- else }} + claimName: {{ .Values.pvc.existingClaim }} + {{- end }}