chore(cnpg): update key name for RO pooler (#686)

**Description**
<!--
Please include a summary of the change and which issue is fixed. Please
also include relevant motivation and context. List any dependencies that
are required for this change.
-->
⚒️ Fixes  # <!--(issue)-->

**⚙️ Type of change**

- [ ] ⚙️ Feature/App addition
- [ ] 🪛 Bugfix
- [ ] ⚠️ Breaking change (fix or feature that would cause existing
functionality to not work as expected)
- [ ] 🔃 Refactor of current code

**🧪 How Has This Been Tested?**
<!--
Please describe the tests that you ran to verify your changes. Provide
instructions so we can reproduce. Please also list any relevant details
for your test configuration
-->

**📃 Notes:**
<!-- Please enter any other relevant information here -->

**✔️ Checklist:**

- [ ] ⚖️ My code follows the style guidelines of this project
- [ ] 👀 I have performed a self-review of my own code
- [ ] #️⃣ I have commented my code, particularly in hard-to-understand
areas
- [ ] 📄 I have made corresponding changes to the documentation
- [ ] ⚠️ My changes generate no new warnings
- [ ] 🧪 I have added tests to this description that prove my fix is
effective or that my feature works
- [ ] ⬆️ I increased versions for any altered app according to semantic
versioning

** App addition**

If this PR is an app addition please make sure you have done the
following.

- [ ] 🖼️ I have added an icon in the Chart's root directory called
`icon.png`

---

_Please don't blindly check all the boxes. Read them and only check
those that apply.
Those checkboxes are there for the reviewer to see what is this all
about and
the status of this PR with a quick glance._
This commit is contained in:
Stavros Kois
2024-01-21 17:33:44 +02:00
committed by GitHub
parent 4d8e9c136e
commit ac6c53ceb1
4 changed files with 10 additions and 10 deletions

View File

@@ -44,13 +44,13 @@ cnpg:
# - supervised: requires manual supervision to perform
# the switchover of the primary
primaryUpdateStrategy: unsupervised
# -- enable to create extra pgbouncer for readonly access
acceptRO: false
# -- storage size for the two pvc's per instance
storage:
size: "256Gi"
walsize: "256Gi"
pooler:
# -- enable to create extra pgbouncer for readonly access
createRO: false
instances: 2
# -- set to enable prometheus metrics
monitoring:
@@ -72,13 +72,13 @@ cnpg:
# - supervised: requires manual supervision to perform
# the switchover of the primary
primaryUpdateStrategy: unsupervised
# -- enable to create extra pgbouncer for readonly access
acceptRO: true
# -- storage size for the two pvc's per instance
storage:
size: "256Gi"
walsize: "256Gi"
pooler:
# -- enable to create extra pgbouncer for readonly access
createRO: true
instances: 2
# -- set to enable prometheus metrics
monitoring:
@@ -100,13 +100,13 @@ cnpg:
# - supervised: requires manual supervision to perform
# the switchover of the primary
primaryUpdateStrategy: unsupervised
# -- enable to create extra pgbouncer for readonly access
acceptRO: true
# -- storage size for the two pvc's per instance
storage:
size: "256Gi"
walsize: "256Gi"
pooler:
# -- enable to create extra pgbouncer for readonly access
createRO: true
instances: 2
# -- set to enable prometheus metrics
monitoring:

View File

@@ -44,13 +44,13 @@ cnpg:
# - supervised: requires manual supervision to perform
# the switchover of the primary
primaryUpdateStrategy: unsupervised
# -- enable to create extra pgbouncer for readonly access
acceptRO: false
# -- storage size for the two pvc's per instance
storage:
size: "256Gi"
walsize: "256Gi"
pooler:
# -- enable to create extra pgbouncer for readonly access
createRO: false
instances: 2
# -- set to enable prometheus metrics
monitoring:

View File

@@ -15,4 +15,4 @@ maintainers:
name: common
sources: null
type: library
version: 17.2.25
version: 17.2.26

View File

@@ -372,7 +372,7 @@ command:
pg_isready -U {{ .user }} -d {{ .database }} -h {{ $cnpgName }}-pooler-rw
do sleep 5
done
{{ if $cnpg.acceptRO }}
{{ if and $cnpg.pooler $cnpg.pooler.createRO }}
echo "Detected RO pooler, testing RO pooler availability..."
until
echo "Testing database on url: {{ $cnpgName }}-pooler-ro"