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 }}