From ed1f958dfcc248fe06c4e5e4ba9091bf6338536c Mon Sep 17 00:00:00 2001 From: Kautilya Tripathi Date: Wed, 18 Dec 2024 05:19:51 +0530 Subject: [PATCH] charts: Fix pvc storage requirement Added validation to ensure required fields are provided. This will fail chart installation if size is not specified when PVC is enabled. Signed-off-by: Kautilya Tripathi --- charts/headlamp/templates/pvc.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/charts/headlamp/templates/pvc.yaml b/charts/headlamp/templates/pvc.yaml index c88b49d6d0..3c9ec9335d 100644 --- a/charts/headlamp/templates/pvc.yaml +++ b/charts/headlamp/templates/pvc.yaml @@ -17,7 +17,7 @@ spec: {{- end}} resources: requests: - storage: {{ .Values.persistentVolumeClaim.size }} + storage: {{ required "A valid .Values.persistentVolumeClaim.size entry required!" .Values.persistentVolumeClaim.size }} {{- with .Values.persistentVolumeClaim.volumeMode }} volumeMode: {{ . }} {{- end }}