Skip to content

Commit

Permalink
Validate persistence mandatory chart values (persistence.size)
Browse files Browse the repository at this point in the history
  • Loading branch information
raminqaf committed Aug 8, 2024
1 parent 1a0f2a4 commit d9cf0b7
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions charts/streams-app/templates/deployment.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
{{- $root := . -}}
{{- if and .Values.persistence.enabled (not .Values.persistence.size) }}
{{- fail "When persistence is enabled, you must set .Values.persistence.size" }}
{{- end }}

{{- if .Capabilities.APIVersions.Has "apps/v1" }}
apiVersion: apps/v1
{{- else }}
Expand Down

0 comments on commit d9cf0b7

Please sign in to comment.