Skip to content

fix: fail chart render when walReplica uses the unpublished image - #480

Closed
guanzhousongmicrosoft wants to merge 1 commit into
documentdb:mainfrom
guanzhousongmicrosoft:developer/1.0-image-fallbacks
Closed

guanzhousongmicrosoft wants to merge 1 commit into
documentdb:mainfrom
guanzhousongmicrosoft:developer/1.0-image-fallbacks

Conversation

@guanzhousongmicrosoft

@guanzhousongmicrosoft guanzhousongmicrosoft commented Oct 19, 2026 •

Copy link
Copy Markdown
Member

Part of #481.

walReplica: true deploys ghcr.io/documentdb/…/wal-replica:<appVersion>. That image was never published, so the pod sits in ImagePullBackOff. The chart now fails at render time when the image resolves to that repository. A custom image.registry or image.walreplica.repository still works.

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

The focused changes consistently update image resolution, chart validation, tests, and documentation, with no blocking issues identified.

No open issues 🎉

What changed in this PR

Removes incompatible ChangeStreams image fallbacks and prevents Helm from deploying WAL replica without an explicit image tag.

Changes:

  • Uses standard image resolution regardless of the ChangeStreams gate.
  • Requires image.walreplica.tag when WAL replica is enabled.
  • Updates regression tests and image-resolution documentation.
File Description
operator/​src/​internal/​webhook/​documentdb_webhook.go Updates image-resolution comments.
operator/​src/​internal/​webhook/​documentdb_webhook_test.go Checks default version with ChangeStreams enabled.
operator/​src/​internal/​utils/​util.go Removes ChangeStreams image override logic.
operator/​src/​internal/​utils/​constants.go Removes personal-registry image constants.
operator/​src/​internal/​product/​documentdb.go Updates shared resolver calls.
operator/​src/​internal/​product/​documentdb_test.go Checks standard ChangeStreams image defaults.
operator/​documentdb-helm-chart/​values.yaml Documents WAL replica image requirements.
operator/​documentdb-helm-chart/​tests/​03_wal_replica_test.yaml Tests required tags and explicit overrides.
operator/​documentdb-helm-chart/​templates/​03_documentdb_wal_replica.yaml Rejects enabled WAL replica without a tag.
docs/​designs/​image-management.md Updates image-resolution precedence.

Review effort: Balanced

@guanzhousongmicrosoft

Copy link
Copy Markdown
Member Author

Closing in favour of #481.

@guanzhousongmicrosoft
guanzhousongmicrosoft force-pushed the developer/1.0-image-fallbacks branch 2 times, most recently from fa55d12 to 01ccc3d Compare October 19, 2026 15:28
@guanzhousongmicrosoft guanzhousongmicrosoft changed the title fix: drop personal ChangeStreams images, fail chart on unpublished wal-replica fix: drop personal ChangeStreams image, guard unpublished wal-replica Oct 19, 2026
@guanzhousongmicrosoft
guanzhousongmicrosoft force-pushed the developer/1.0-image-fallbacks branch from 01ccc3d to 6aca6ca Compare October 19, 2026 15:33
Signed-off-by: Guanzhou Song <guanzhousong@microsoft.com>
@guanzhousongmicrosoft
guanzhousongmicrosoft force-pushed the developer/1.0-image-fallbacks branch from 6aca6ca to ba39daa Compare October 19, 2026 15:37
@guanzhousongmicrosoft guanzhousongmicrosoft changed the title fix: drop personal ChangeStreams image, guard unpublished wal-replica fix: fail chart render when walReplica uses the unpublished image Oct 19, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants