Skip to content

Commit

Permalink
charts: Fix pvc storage requirement
Browse files Browse the repository at this point in the history
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 <[email protected]>
  • Loading branch information
knrt10 committed Dec 17, 2024
1 parent 81fb494 commit ed1f958
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion charts/headlamp/templates/pvc.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
Expand Down

0 comments on commit ed1f958

Please sign in to comment.