Skip to content

chore: release v1.2.0 - #506

Merged
hossain-rayhan merged 3 commits into
documentdb:mainfrom
hossain-rayhan:rayhan/release-1.2.0
Nov 19, 2026
Merged

hossain-rayhan merged 3 commits into
documentdb:mainfrom
hossain-rayhan:rayhan/release-1.2.0

Conversation

@hossain-rayhan

@hossain-rayhan hossain-rayhan commented Nov 11, 2026 •

Copy link
Copy Markdown
Collaborator

Summary

Prepares operator 1.2.0, the first release with the stable documentdb.io/v1 CRD API (#486). The default DocumentDB engine stays at 1.0.0, so only the operator, sidecar, CRDs and Helm chart change. No database-track release is needed.

Changes

Not changed: values.yaml (documentDbVersion stays 1.0.0) and the compiled-in engine defaults.

Testing

  • Helm: helm unittest passes (124 tests after rebasing on main), helm lint is clean, and the default render uses operator:1.2.0 and sidecar:1.2.0.
  • Docs: mkdocs build --strict passes using the deploy_docs.yml package pins.
  • Kind release test (Kubernetes 1.35, cert-manager 1.19.6, operator and sidecar images built from this branch and tagged 1.2.0), following the upgrade guide step by step:
    1. Installed the published oci://ghcr.io/documentdb/documentdb-operator:1.1.1 chart and created a preview DocumentDB and ScheduledBackup with 100 documents.
    2. Applied the 1.2.0 CRDs (step 3): v1 is the storage version and storedVersions is ["preview","v1"].
    3. Ran helm upgrade to 1.2.0 (step 4). The database pod kept the same UID with 0 restarts, the cluster stayed healthy, and all 100 documents were intact. The operator logged only the usual first-reconcile "object has been modified" retries.
    4. Created a new v1 DocumentDB and ScheduledBackup; reads/writes worked. Re-applying an unchanged preview manifest is a no-op with a deprecation warning. The webhook rejected a PVC shrink through both v1 and preview.
    5. Ran the guide's migration commands: kubectl replace on every object, then trimmed storedVersions to ["v1"] on all three CRDs. Clusters stayed healthy with no restarts.
    6. Rollback: helm rollback to 1.1.1 against the 1.2.0 CRDs with storedVersions=["v1"]. Existing clusters stayed healthy, the 1.1.1 operator created a new preview cluster, and it logged no errors. Re-applying the 1.1.1 CRDs was rejected (v1 was previously a storage version, and must remain in spec.versions), as the new note says.
    7. Rolled forward to 1.2.0 again; no database pods restarted across the rollback and roll-forward.
    8. Fresh install of the 1.2.0 chart: storedVersions=["v1"], and a v1 DocumentDB became healthy with reads/writes working.

Re-test after rebasing on main (2026-11-16), since #476 and #507 changed operator and plugin code: on kind (Kubernetes 1.35), upgraded from the published 1.1.1 chart to this branch's images with two clusters, one plain and one with monitoring (OTel sidecar). Pod UIDs, container restart counts and CNPG Cluster generations were all unchanged, both clusters stayed healthy, and the operator logged no errors. Upgrading from 1.1.1 still causes no restarts.

Post-merge release steps

Run these after this PR merges, from the merge commit on main (call it <merge-sha>), as in the 1.1.0 and 1.1.1 releases.

  1. Wait for TEST - E2E to pass on <merge-sha> on main. The promote workflow checks for this.
  2. Run RELEASE - Build Operator Candidate Images (build_operator_images.yml) on main with version: 1.2.0. It produces the 1.2.0-test operator and sidecar images.
  3. Optionally smoke-test the candidates: install the published 1.1.1 chart, apply the CRDs from <merge-sha>, and upgrade with image.*.tag=1.2.0-test.
  4. Run RELEASE - Promote Operator Images and Publish Helm Chart (release_operator.yml) with candidate_version: 1.2.0-test, version: 1.2.0 and source_ref: <merge-sha>. source_ref must be the commit the candidates were built from. Leave force off.
  5. Tag <merge-sha> as 1.2.0 (no v prefix, like earlier tags) and publish the GitHub release. The upgrade guide downloads CRDs from raw.githubusercontent.com/.../${TARGET_VERSION}/..., so the tag must match the chart version exactly. Put "Apply the 1.2.0 CRDs before helm upgrade" at the top of the release notes.
  6. Verify: helm show chart oci://ghcr.io/documentdb/documentdb-operator --version 1.2.0 shows appVersion: 1.2.0, and the CRD URL from the upgrade guide returns 200 for 1.2.0.

Copilot AI balanced review requested due to automatic review settings November 11, 2026 18:37

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 remain for the operator 1.2.0 release preparation changes.

No open issues 🎉

What changed in this PR

Prepares operator 1.2.0 for release with the stable documentdb.io/v1 API introduced in #486, while keeping the default DocumentDB engine at 1.0.0.

Changes:

  • Bumps the Helm chart and operator image versions to 1.2.0, updating matching test assertions.
  • Updates release notes, compatibility tables, and public version guidance.
  • Clarifies that upgrades from 1.1.x or earlier require applying CRDs first, and rollbacks to 1.1.x must retain the 1.2.0 CRDs.
File Description
operator/​documentdb-helm-chart/​tests/​09_operator_deployment_test.yaml Updates operator image assertions to 1.2.0.
operator/​documentdb-helm-chart/​tests/​03_wal_replica_test.yaml Updates the WAL replica image assertion to 1.2.0.
operator/​documentdb-helm-chart/​tests/​02_sidecar_injector_test.yaml Updates the sidecar image assertion to 1.2.0.
operator/​documentdb-helm-chart/​Chart.yaml Sets chart and application versions to 1.2.0.
docs/​operator-public-documentation/​v1/​operations/​upgrades.md Clarifies CRD upgrade, API migration, and rollback requirements.
docs/​operator-public-documentation/​v1/​index.md Updates the advertised operator release to 1.2.0.
docs/​operator-public-documentation/​v1/​getting-started/​before-you-start.md Adds and recommends operator 1.2.0.
docs/​designs/​release-strategy.md Adds 1.2.x support and compatibility information.
CHANGELOG.md Adds the 1.2.0 release entry and corrects historical entries.

Review effort: Balanced

@documentdb-triage-tool documentdb-triage-tool Bot added the documentation Improvements or additions to documentation label Nov 11, 2026
@documentdb-triage-tool

Copy link
Copy Markdown

🤖 Auto-triaged by documentdb-triage-tool.

Applied: documentation
Project fields suggested: Component docs · Priority P0 · Effort L · Status Needs Review
Confidence: 0.95 (deterministic)

Reasoning

component from path globs (docs); P0 keyword "cve" in body; effort from diff stats (29+12 LOC, 9 files)

If a label is wrong, ping @patty-chow so the rules can be tuned. Issues with component labels are left alone; PR component labels are reconciled from changed paths on every run.

hossain-rayhan and others added 2 commits November 16, 2026 10:58
Prepare operator 1.2.0, the first release with the documentdb.io/v1 API.
The default DocumentDB engine stays at 1.0.0.

- Chart.yaml version/appVersion 1.1.1 -> 1.2.0; Helm test image tags
- CHANGELOG: [Unreleased] -> [1.2.0] - 2026-11-11 with summary; add the
  documentdb#496 and documentdb#493 changes that shipped in 1.1.1; fix the 1.1.0 date
  (released 2026-11-04)
- release-strategy.md: v1.2.x support, Kubernetes, dependency and
  component rows
- before-you-start.md / index.md: operator 1.2.0
- upgrades.md: the CRD step is required from 1.1.x too, not only 1.0.x;
  document rolling back from 1.2.0 to 1.1.x

Co-authored-by: Copilot <[email protected]>
Copilot-Session: 9f1a71b4-9969-4456-9f65-8d19dd550d8e
Signed-off-by: Rayhan Hossain <[email protected]>
- Release date 2026-11-17.
- Add CHANGELOG entries for changes merged after the release PR was
  opened: OTel Collector outbound proxy (documentdb#476), documentdb_core upgraded
  with documentdb (documentdb#507), and stable documentation links and checks
  (documentdb#513, documentdb#514). documentdb#508 already added its own entry; documentdb#509 is internal.

Co-authored-by: Copilot <[email protected]>
Copilot-Session: 9f1a71b4-9969-4456-9f65-8d19dd550d8e
Signed-off-by: Rayhan Hossain <[email protected]>
Co-authored-by: Copilot <[email protected]>
Copilot-Session: 9f1a71b4-9969-4456-9f65-8d19dd550d8e
Signed-off-by: Rayhan Hossain <[email protected]>
@hossain-rayhan
hossain-rayhan merged commit 41b26fb into documentdb:main Nov 19, 2026
50 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Improvements or additions to documentation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants