Skip to content

Commit

Permalink
Revert to walStorage disabled by default and add enabled flag to enab…
Browse files Browse the repository at this point in the history
…le (#367)

* Revert to walStorage disabled by default and add enabled flag to enable it

Signed-off-by: Brinn Joyce <[email protected]>
  • Loading branch information
brinnjoyce authored Sep 3, 2024
1 parent 9024f04 commit ad5b275
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 1 deletion.
2 changes: 1 addition & 1 deletion charts/cluster/templates/cluster.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ spec:
storage:
size: {{ .Values.cluster.storage.size }}
storageClass: {{ .Values.cluster.storage.storageClass }}
{{- if .Values.cluster.walStorage }}
{{- if .Values.cluster.walStorage.enabled }}
walStorage:
size: {{ .Values.cluster.walStorage.size }}
storageClass: {{ .Values.cluster.walStorage.storageClass }}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ cluster:
size: 256Mi
storageClass: standard
walStorage:
enabled: true
size: 256Mi
storageClass: standard
postgresUID: 1001
Expand Down
3 changes: 3 additions & 0 deletions charts/cluster/values.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -276,6 +276,9 @@
"walStorage": {
"type": "object",
"properties": {
"enabled": {
"type": "boolean"
},
"size": {
"type": "string"
},
Expand Down
1 change: 1 addition & 0 deletions charts/cluster/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -136,6 +136,7 @@ cluster:
storageClass: ""

walStorage:
enabled: false
size: 1Gi
storageClass: ""

Expand Down

0 comments on commit ad5b275

Please sign in to comment.