Skip to content

Commit

Permalink
chore(cnpg): update key name for RO pooler
Browse files Browse the repository at this point in the history
  • Loading branch information
stavros-k committed Jan 21, 2024
1 parent 4d8e9c1 commit 9133e22
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 6 deletions.
10 changes: 7 additions & 3 deletions library/common-test/ci/cnpg-multi-values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ cnpg:
# the switchover of the primary
primaryUpdateStrategy: unsupervised
# -- enable to create extra pgbouncer for readonly access
acceptRO: false
createRO: false
# -- storage size for the two pvc's per instance
storage:
size: "256Gi"
Expand Down Expand Up @@ -73,7 +73,7 @@ cnpg:
# the switchover of the primary
primaryUpdateStrategy: unsupervised
# -- enable to create extra pgbouncer for readonly access
acceptRO: true
createRO: true
# -- storage size for the two pvc's per instance
storage:
size: "256Gi"
Expand Down Expand Up @@ -101,7 +101,7 @@ cnpg:
# the switchover of the primary
primaryUpdateStrategy: unsupervised
# -- enable to create extra pgbouncer for readonly access
acceptRO: true
createRO: true
# -- storage size for the two pvc's per instance
storage:
size: "256Gi"
Expand All @@ -113,3 +113,7 @@ cnpg:
enablePodMonitor: true
# -- contains credentials and urls output by generator
creds: {}

operator:
verify:
enabled: false
2 changes: 1 addition & 1 deletion library/common-test/ci/cnpg-values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ cnpg:
# the switchover of the primary
primaryUpdateStrategy: unsupervised
# -- enable to create extra pgbouncer for readonly access
acceptRO: false
createRO: false
# -- storage size for the two pvc's per instance
storage:
size: "256Gi"
Expand Down
2 changes: 1 addition & 1 deletion library/common/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,4 @@ maintainers:
name: common
sources: null
type: library
version: 17.2.25
version: 17.2.26
2 changes: 1 addition & 1 deletion library/common/templates/lib/dependencies/_dbWait.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -372,7 +372,7 @@ command:
pg_isready -U {{ .user }} -d {{ .database }} -h {{ $cnpgName }}-pooler-rw
do sleep 5
done
{{ if $cnpg.acceptRO }}
{{ if $cnpg.createRO }}
echo "Detected RO pooler, testing RO pooler availability..."
until
echo "Testing database on url: {{ $cnpgName }}-pooler-ro"
Expand Down

0 comments on commit 9133e22

Please sign in to comment.