Repository navigation
docs: warn that helm upgrade keeps pinned image tags - #497
hossain-rayhan wants to merge 2 commits into
Conversation
There was a problem hiding this comment.
🟢 Approval recommended
There are no active review issues for the Helm upgrade guidance and release-date correction.
No open issues 🎉
What changed in this PR
Clarifies Helm upgrade behavior so users can avoid retaining pinned operator and sidecar images when upgrading to a new chart version.
Changes:
- Documents
--reset-values, reapplying required settings, and inspecting existing overrides. - Adds commands to verify operator and sidecar deployment image versions.
- Corrects the 1.1.0 release date to November 4, 2026.
| File | Description |
|---|---|
docs/operator-public-documentation/preview/operations/upgrades.md |
Adds pinned-image warnings, reset guidance, and image verification commands. |
CHANGELOG.md |
Corrects the 1.1.0 release date. |
Review effort: Balanced
|
🤖 Auto-triaged by documentdb-triage-tool. Applied: Reasoningcomponent from path globs (docs); effort from diff stats (20+1 LOC, 2 files); LLM: Adds a targeted warning and verification step to the upgrade guide to prevent silent image-tag pinning issues during helm upgrade, plus a minor CHANGELOG date fix. If a label is wrong, remove it manually and ping |
xgerman
left a comment
There was a problem hiding this comment.
Authoring suggestions for the upgrade guide (non-blocking; items below concern existing page content rather than changes introduced by this PR):
-
Shell-safe placeholder (line 44): Replace
TARGET_VERSION=<release-version>withTARGET_VERSION="<release-version>"; the current angle brackets are shell redirection syntax. Clarify whether the value is a Helm chart version or Git release tag, since the guide uses it for both. -
Qualify rollback guarantees (line 150): Replace the unconditional binary rollback statement with: ‘Yes, provided the target binary supports the current schema and meets the operator’s version constraints.’
-
Identify partial manifests (line 186): Add: ‘Update these fields in your existing manifest. Keep all other required configuration unchanged.’ This avoids implying that the abbreviated YAML examples are complete cluster manifests.
-
Qualify the rolling safety gap (line 253): Replace ‘permanent rollback window’ with: ‘This pattern preserves a rollback option to the previous binary only when that binary supports the resulting schema. Confirm compatibility in the release notes before each upgrade.’
-
Show image override removal (line 330): The 1.0 upgrade instructions say to remove explicit image overrides, but the example patch does not remove them. Include a separate merge-patch example setting
spec.image.documentDBandspec.image.gatewaytonull, for clusters that use those overrides.
One additional suggestion on the new verification commands is attached inline. These are documentation suggestions, not a runtime-validation verdict; no deployment tests were run.
| kubectl get deployment documentdb-operator -n documentdb-operator \ | ||
| -o jsonpath='{.spec.template.spec.containers[0].image}{"\n"}' | ||
| kubectl get deployment sidecar-injector -n cnpg-system \ | ||
| -o jsonpath='{.spec.template.spec.containers[0].image}{"\n"}' |
There was a problem hiding this comment.
Non-blocking — define verification success. These commands print the configured images, but do not establish that the rollout completed or the running cluster is healthy. Add the expected outcomes: operator and sidecar deployments are available, image tags match the intended release, cluster instances recover, and application read/write checks pass. Including kubectl rollout status for these deployments would make the deployment check actionable.
There was a problem hiding this comment.
Done in 2c1a99c. Step 5 now runs kubectl rollout status for the operator and sidecar-injector Deployments, checks their images, lists kubectl get documentdb -A, and states the success criteria: both rollouts report successfully rolled out, both images end in :${TARGET_VERSION} (with a pointer to the pinned-tags warning if not), every cluster reports Cluster in healthy state, no repeated operator errors, and an application read/write through the gateway works. I ran these commands on a kind cluster to confirm the output matches the wording.
`helm upgrade` without new values reuses the previous release's values, so an install that pinned image.documentdbk8soperator.tag or image.sidecarinjector.tag keeps running the old operator after upgrading the chart. Found while upgrading an Azure Local cluster to 1.1.0. Document --reset-values and `helm get values`, and verify the running operator and sidecar images after the upgrade. Also correct the 1.1.0 CHANGELOG date to the actual release date (2026-11-04). Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> Copilot-Session: 6c85cd4b-f086-46f7-8823-7e63c33e4de7 Signed-off-by: Rayhan Hossain <hossain.rayhan@outlook.com>
- Step 5: wait with kubectl rollout status and list the success criteria (rollouts complete, images match TARGET_VERSION, clusters healthy, no repeated operator errors, application read/write works). - Quote the TARGET_VERSION placeholder and explain that the chart version and release tag are the same value. - Qualify binary rollback: only to a version >= status.schemaVersion. - Say the walkthrough YAML shows only the fields to change. - Replace "permanent rollback window" with a compatibility caveat. - Show the merge patch that removes spec.image overrides when moving a 0.x cluster to 1.0. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> Copilot-Session: 9f1a71b4-9969-4456-9f65-8d19dd550d8e Signed-off-by: Rayhan Hossain <hossain.rayhan@outlook.com>
7e27619 to
2c1a99c
Compare
|
Thanks @xgerman. I rebased on
Testing: |
Summary
While upgrading an Azure Local (AKS Arc) cluster to operator 1.1.0,
helm upgrade documentdb-operator oci://ghcr.io/documentdb/documentdb-operator --version 1.1.0reporteddocumentdb-operator-1.1.0 … deployed, but the operator and sidecar kept running the previously pinned0.2.0-testimages. With no new values passed, Helm reuses the previous release's values, and the original install had setimage.documentdbk8soperator.tagandimage.sidecarinjector.tag. Re-running with--reset-valuesdeployed the 1.1.0 images. Any user who pinned image tags at install time hits the same thing, and the upgrade guide's verification step didn't catch it.Changes
docs/operator-public-documentation/preview/operations/upgrades.md:--reset-valuesexample, a reminder to pass required settings again (for exampleimage.registry), andhelm get valuesto inspect current overrides.CHANGELOG.md: the[1.1.0]date becomes the actual release date, 2026-11-04 (it said 2026-11-17).Testing
mkdocs build: no warnings.operator:0.2.0-testbefore--reset-valuesandoperator:1.1.0/sidecar:1.1.0after.