[Cluster chart] Add support for failoverDelay
Nobody has claimed this yet.
Assessment
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Newbie friendliness
- 82/100
- Issue type
- Feature
- Clarity
- Clearly specified
- Activity status
- Quiet
- Tech stack
- helm
- Domain
- devops
Research direction
Update values.yaml under cluster and templates/cluster.yaml next to primaryUpdateMethod. Start by running the provided helm template command with the reproducer values, then verify the rendered Cluster includes failoverDelay and that the default remains 0.
Written by the indexing model from the issue text.
Description
The CNPG Cluster CRD supports spec.failoverDelay (integer seconds — delay before a primary is failed over once judged unhealthy), but the cluster chart does not expose it as a values key. Setting cluster.failoverDelay in values is silently dropped by the template.
This makes it impossible to use the chart for clusters that need to ride out brief instance-manager / kubelet hiccups without spurious failovers — which on storage without WAL archiving (eg. file-thinpool, local PV) can leave the old primary divergent with no pg_rewind archive to fall back to.
Reproducer
# values.yaml
cluster:
failoverDelay: 30
helm template foo cloudnative-pg/cluster --version 0.6.1 -f values.yaml | grep failoverDelay
# (no output — chart never templates the field)
Proposed shape
Same pattern as #834 / #867 — small wire-up.
values.yaml (under cluster:):
# -- Seconds to wait before triggering a failover after the primary is considered unhealthy.
# See https://cloudnative-pg.io/documentation/current/cluster_conf/#failover
failoverDelay: 0
templates/cluster.yaml (next to primaryUpdateMethod):
failoverDelay: {{ .Values.cluster.failoverDelay }}
Happy to open a PR if the direction looks right.
- Dominant language
- Go Template
- Stars
- 622
- Forks
- 264
- Avg merge
- 6d 16h
- Merged PRs (30d)
- 8
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from cloudnative-pg/charts
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
cloudnative-pg/charts#1022 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 84/100
cloudnative-pg/charts#1020 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
cloudnative-pg/charts#1013 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 70/100
cloudnative-pg/charts#1001 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
cloudnative-pg/charts#992 · 1 comment ·
All issues in cloudnative-pg/charts
Similar issues
-
Difficulty 1/5 Under an hour Newbie friendliness 84/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 84/100
danielmiessler/LifeOS#2215 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
sympozium-ai/sympozium#627 ·
-
repo:raw-data
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
hotosm/raw-data-api#316 · 1 comment ·
-
agentic-workflows cascade-suspected
Difficulty 2/5 1-3 hours Newbie friendliness 68/100