Skip to content

Commit

Permalink
Wrap storage.storageClass and walStorage.storageClass in if condition
Browse files Browse the repository at this point in the history
Signed-off-by: Mohammad Bozorgmehr <[email protected]>
  • Loading branch information
Mohammad Bozorgmehr committed Nov 8, 2024
1 parent b1d7301 commit d08bd5a
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions charts/cluster/templates/cluster.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,11 +23,15 @@ spec:
postgresGID: {{ include "cluster.postgresGID" . }}
storage:
size: {{ .Values.cluster.storage.size }}
{{- if not (empty .Values.cluster.storage.storageClass) }}
storageClass: {{ .Values.cluster.storage.storageClass }}
{{- end }}
{{- if .Values.cluster.walStorage.enabled }}
walStorage:
size: {{ .Values.cluster.walStorage.size }}
{{- if not (empty .Values.cluster.walStorage.storageClass) }}
storageClass: {{ .Values.cluster.walStorage.storageClass }}
{{- end }}
{{- end }}
{{- with .Values.cluster.resources }}
resources:
Expand Down

0 comments on commit d08bd5a

Please sign in to comment.