Skip to content

fix: refuse walReplica=true in the Helm chart until it works - #492

Merged
guanzhousongmicrosoft merged 1 commit into
documentdb:mainfrom
guanzhousongmicrosoft:developer/guanzhou/disable-wal-replica
Nov 4, 2026
Merged

guanzhousongmicrosoft merged 1 commit into
documentdb:mainfrom
guanzhousongmicrosoft:developer/guanzhou/disable-wal-replica

Conversation

@guanzhousongmicrosoft

Copy link
Copy Markdown
Member

The WAL replica plugin doesn't work yet, but walReplica: true still deploys it, so anyone who turns it on gets a broken install. That matters more now that image.registry can move the chart to MCR, where wal-replica isn'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.yaml rather than in the wal-replica template, so that template and its tests stay intact for when the plugin is ready. Remove the check then.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟢 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

@documentdb-triage-tool documentdb-triage-tool Bot added bug Something isn't working documentation Improvements or additions to documentation labels Nov 4, 2026
@documentdb-triage-tool

Copy link
Copy Markdown

🤖 Auto-triaged by documentdb-triage-tool.

Applied: documentation, bug
Project fields suggested: Component docs · Priority P1 · Effort M · Status Ready
Confidence: 0.85 (mixed)

Reasoning

component 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 @patty-chow so the rules can be tuned. The bot will not re-label items that already have component labels.

@guanzhousongmicrosoft
guanzhousongmicrosoft merged commit 9b60c8d into documentdb:main Nov 4, 2026
49 checks passed
@guanzhousongmicrosoft
guanzhousongmicrosoft deleted the developer/guanzhou/disable-wal-replica branch November 4, 2026 21:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working documentation Improvements or additions to documentation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants