mirror of
https://github.com/truecharts/library-charts.git
synced 2026-07-03 07:29:21 -03:00
**Description** In our ongoing project to ensure the common-chart doing fully reproducable builds, we should get rid of any randomisation and most of the remaining lookups. This PR removes the last randomisation and lookups. Instead of randomisation, it now relies on hashes of settings in `.Values`, this should be fine, as we don't actively support kubernetes objects created outside of the common-chart We will also rely on build-in checks for CRDs instead of DIYing it. The reason behind it is that lookups are inherently problematic, primarily on platforms with limited lookup capability or limited permissions. **⚙️ Type of change** - [x] ⚙️ Feature/App addition - [x] 🪛 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 - [ ] I made sure the title starts with `feat(chart-name):`, `fix(chart-name):` or `chore(chart-name):` **➕ 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._ --------- Co-authored-by: Stavros kois <s.kois@outlook.com> Co-authored-by: Stavros Kois <47820033+stavros-k@users.noreply.github.com>
108 lines
3.1 KiB
YAML
108 lines
3.1 KiB
YAML
service:
|
|
main:
|
|
enabled: true
|
|
ports:
|
|
main:
|
|
enabled: true
|
|
port: 8080
|
|
|
|
workload:
|
|
main:
|
|
enabled: true
|
|
podSpec:
|
|
containers:
|
|
main:
|
|
enabled: true
|
|
args:
|
|
- --port
|
|
- "8080"
|
|
probes:
|
|
liveness:
|
|
enabled: true
|
|
readiness:
|
|
enabled: true
|
|
startup:
|
|
enabled: true
|
|
|
|
cnpg:
|
|
main:
|
|
enabled: true
|
|
# -- number of instances for both postgres and pgbouncer
|
|
instances: 2
|
|
database: "app"
|
|
user: "app"
|
|
password: test-password
|
|
# -- change to supervised to disable unsupervised updates
|
|
# Example of rolling update strategy:
|
|
# - unsupervised: automated update of the primary once all
|
|
# replicas have been upgraded (default)
|
|
# - supervised: requires manual supervision to perform
|
|
# the switchover of the primary
|
|
primaryUpdateStrategy: unsupervised
|
|
# -- 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:
|
|
enablePodMonitor: false
|
|
# -- contains credentials and urls output by generator
|
|
creds: {}
|
|
ro:
|
|
enabled: true
|
|
# -- number of instances for both postgres and pgbouncer
|
|
instances: 2
|
|
database: "app2"
|
|
user: "app2"
|
|
password: test-password
|
|
# Example of rolling update strategy:
|
|
# - unsupervised: automated update of the primary once all
|
|
# replicas have been upgraded (default)
|
|
# - supervised: requires manual supervision to perform
|
|
# the switchover of the primary
|
|
primaryUpdateStrategy: unsupervised
|
|
# -- 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:
|
|
enablePodMonitor: false
|
|
# -- contains credentials and urls output by generator
|
|
creds: {}
|
|
mon:
|
|
enabled: true
|
|
# -- number of instances for both postgres and pgbouncer
|
|
instances: 2
|
|
database: "app2"
|
|
user: "app2"
|
|
password: test-password
|
|
# -- change to supervised to disable unsupervised updates
|
|
# Example of rolling update strategy:
|
|
# - unsupervised: automated update of the primary once all
|
|
# replicas have been upgraded (default)
|
|
# - supervised: requires manual supervision to perform
|
|
# the switchover of the primary
|
|
primaryUpdateStrategy: unsupervised
|
|
# -- 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:
|
|
enablePodMonitor: true
|
|
# -- contains credentials and urls output by generator
|
|
creds: {}
|