Repository navigation
fix: refuse walReplica=true in the Helm chart until it works - #492
Conversation
Signed-off-by: Guanzhou Song <[email protected]>
There was a problem hiding this comment.
🟢 Approval recommended
No active review issues are reported for the change preventing unsupported WAL replica deployments at Helm render time.
No open issues 🎉
What changed in this PR
Prevents broken WAL replica deployments by rejecting walReplica: true when the Helm chart renders, including configurations using registries where the image is unavailable.
Changes:
- Adds a render-time guard in the preflight template, leaving the WAL replica template and its tests intact.
- Adds a test for the rejection and its error message.
- Updates the values comment and changelog to document the restriction.
| File | Description |
|---|---|
operator/documentdb-helm-chart/values.yaml |
Clarifies that enabling WAL replica is unsupported. |
operator/documentdb-helm-chart/tests/00_preflight_test.yaml |
Tests that enabling WAL replica fails rendering. |
operator/documentdb-helm-chart/templates/00_preflight.yaml |
Rejects walReplica: true with an actionable error. |
CHANGELOG.md |
Records the new Helm chart restriction. |
Review effort: Balanced
|
🤖 Auto-triaged by documentdb-triage-tool. Applied: Reasoningcomponent from path globs (docs); effort from diff stats (20+1 LOC, 4 files); LLM: Prevents broken installs and ImagePullBackOff for users enabling walReplica=true by failing fast at Helm render time, a small guard added to a single preflight template file. If a label is wrong, remove it manually and ping |
The WAL replica plugin doesn't work yet, but
walReplica: truestill deploys it, so anyone who turns it on gets a broken install. That matters more now thatimage.registrycan move the chart to MCR, wherewal-replicaisn't published: the flag would also fail with ImagePullBackOff.The chart now fails at render time when the flag is set. The check lives in
00_preflight.yamlrather than in the wal-replica template, so that template and its tests stay intact for when the plugin is ready. Remove the check then.