Skip to content

Commit

Permalink
fix(pg/dump-local): default to non-dumpall
Browse files Browse the repository at this point in the history
  • Loading branch information
JJGadgets committed Apr 28, 2024
1 parent e7214c0 commit 12a15a8
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
1 change: 1 addition & 0 deletions kube/deploy/core/db/pg/clusters/default/ks.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ spec:
PG_SC: "local"
PG_CONFIG_VERSION: "16"
PG_CONFIG_SIZE: "100Gi"
PG_DUMPALL: "TRUE"
patches:
- patch: |-
apiVersion: postgres-operator.crunchydata.com/v1beta1
Expand Down
1 change: 1 addition & 0 deletions kube/deploy/core/db/pg/clusters/home/ks.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ spec:
PG_SC: "local"
PG_CONFIG_VERSION: "16"
PG_CONFIG_SIZE: "100Gi"
PG_DUMPALL: "TRUE"
patches:
- patch: |-
apiVersion: postgres-operator.crunchydata.com/v1beta1
Expand Down
4 changes: 2 additions & 2 deletions kube/deploy/core/db/pg/clusters/template/dump-local.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -43,9 +43,9 @@ spec:
env:
# don't use pg_dumpall because this template assumes 1 cluster and 1 DB by default
- name: "POSTGRES_CLUSTER"
value: "TRUE"
value: !!str "${PG_DUMPALL:=FALSE}"
- name: "POSTGRES_DB"
value: "postgres"
value: "${PG_DB_NAME:=postgres}"
# DROP backed_up_databases IF EXISTS
- name: "POSTGRES_EXTRA_OPTS"
value: "--clean --if-exists"
Expand Down

0 comments on commit 12a15a8

Please sign in to comment.