From 673ce560bb8be0efdfae552b53882430bdbb4d0c Mon Sep 17 00:00:00 2001 From: Rayhan Hossain Date: Wed, 11 Nov 2026 10:36:49 -0800 Subject: [PATCH 1/3] chore: release v1.2.0 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 #496 and #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 <223556219+Copilot@users.noreply.github.com> Copilot-Session: 9f1a71b4-9969-4456-9f65-8d19dd550d8e Signed-off-by: Rayhan Hossain --- CHANGELOG.md | 11 ++++++++++- docs/designs/release-strategy.md | 4 ++++ .../v1/getting-started/before-you-start.md | 3 ++- docs/operator-public-documentation/v1/index.md | 2 +- .../v1/operations/upgrades.md | 9 ++++++--- operator/documentdb-helm-chart/Chart.yaml | 4 ++-- .../tests/02_sidecar_injector_test.yaml | 2 +- .../tests/03_wal_replica_test.yaml | 2 +- .../tests/09_operator_deployment_test.yaml | 4 ++-- 9 files changed, 29 insertions(+), 12 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index e7ceda2d2..9cde314a3 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,10 @@ ## [Unreleased] +## [1.2.0] - 2026-11-11 + +Operator release for DocumentDB 1.0; the default DocumentDB engine stays at `1.0.0` (extension schema `1.0-0`), so only the operator, sidecar, CRDs and Helm chart change. The `DocumentDB`, `Backup` and `ScheduledBackup` resources graduate to the stable `documentdb.io/v1` API. **Apply the 1.2.0 CRDs before `helm upgrade`**; existing `documentdb.io/preview` resources and manifests keep working and existing clusters are not restarted. + ### Upgrade notes - **`documentdb.io/v1` API**: `DocumentDB`, `Backup` and `ScheduledBackup` graduate from `documentdb.io/preview` to the stable `documentdb.io/v1` API, which is now the storage version. `preview` remains served with an identical schema and returns a deprecation warning; it will be removed in a future release. **Apply the updated CRDs before running `helm upgrade`** (Helm does not upgrade CRDs), otherwise the new operator cannot start. Update manifests to `apiVersion: documentdb.io/v1`; no other field changes are needed. The Go API package moved from `operator/src/api/preview` to `operator/src/api/v1`, the validating webhook path is now `/validate-documentdb-io-v1-documentdb`, and `kubectl documentdb` uses `v1`. The public documentation moved from `.../preview/` to `.../v1/`; old URLs redirect. See [Migrating to the `documentdb.io/v1` API](docs/operator-public-documentation/v1/operations/upgrades.md#migrating-to-the-documentdbiov1-api). @@ -10,6 +14,9 @@ - Upgrade the cert-manager Go dependency and pinned Arc/Fleet installations to `v1.19.6` to address [CVE-2026-62290](https://github.com/advisories/GHSA-8rvj-mm4h-c258). Existing clusters must upgrade their separately installed cert-manager controller to a patched release (`1.19.6` or `1.20.3`); upgrading the DocumentDB operator alone does not upgrade cert-manager. - Upgrade `github.com/klauspost/compress` to `v1.20.2` in the sidecar injector and shared, E2E, and long-haul test modules to address [GO-2026-6865](https://pkg.go.dev/vuln/GO-2026-6865). +### Documentation +- Connect to DocumentDB in the getting-started guides by port-forwarding the gateway Service (#467). + ## [1.1.1] - 2026-11-09 ### Security @@ -17,14 +24,16 @@ ### Bug Fixes - Refuse `walReplica: true` in the Helm chart until the WAL replica plugin works (#492). +- Stop the combined image inheriting CloudNativePG's image labels (#493). ### Documentation - Update installation scripts and documentation to avoid missing or pre-1.0 versions (#479). ### Enhancements & Fixes +- Add the `cloudnative-pg.enabled` Helm value to install the operator against an existing CloudNativePG installation. Set it to `false` and point `cloudnative-pg.namespaceOverride` at the namespace where CloudNativePG runs; the chart then skips the bundled CloudNativePG chart and does not create that namespace (#496). - Check loaded test images with `docker image inspect` instead of matching image-list output (#490). -## [1.1.0] - 2026-11-17 +## [1.1.0] - 2026-11-04 Operator release for DocumentDB 1.0; the default DocumentDB engine stays at `1.0.0` (extension schema `1.0-0`), so only the operator, sidecar and Helm chart change. Clusters on Kubernetes or container runtimes without image volume support (for example containerd 1.7, or Kubernetes 1.32) now run with a combined PostgreSQL + DocumentDB image instead of being rejected. Apply the 1.1.0 CRDs before `helm upgrade`; existing clusters keep their image layout and are not restarted. diff --git a/docs/designs/release-strategy.md b/docs/designs/release-strategy.md index ee7f2ee58..bcf5a4f12 100644 --- a/docs/designs/release-strategy.md +++ b/docs/designs/release-strategy.md @@ -125,6 +125,7 @@ v0.1.0 released -----> v0.2.0 released -----> v0.1.x EOL (3 months later) | Version | Release Date | End of Life | Status | |---------|--------------|-------------|--------| +| v1.2.x | Nov 2026 | Per release policy | Supported | | v1.1.x | Nov 2026 | Per release policy | Supported | | v1.0.x | Oct 2026 | Per release policy | Supported | | v0.1.x | Dec 2025 | 3 months after v0.2.0 | End of life | @@ -172,6 +173,7 @@ We follow a **roll forward** strategy rather than backporting: | Operator Version | Minimum K8s | Maximum K8s | Tested Versions | |------------------|-------------|-------------|-----------------| +| v1.2.x | 1.32 (combined image below 1.35 without ImageVolume) | 1.35 | 1.32, 1.33, 1.34, 1.35 | | v1.1.x | 1.32 (combined image below 1.35 without ImageVolume) | 1.35 | 1.32, 1.33, 1.34, 1.35 | | v1.0.x | 1.33 (ImageVolume gate enabled) | 1.35 | 1.33, 1.34, 1.35 | | v0.1.x | 1.28 | 1.32 | 1.30, 1.31, 1.32 | @@ -182,6 +184,7 @@ We follow a **roll forward** strategy rather than backporting: | Operator Version | CloudNative-PG | cert-manager | Helm | |------------------|----------------|--------------|------| +| v1.2.x | 1.29.x (chart 0.28.3) | 1.19.6+ or 1.20.3+ (CVE-2026-62290) | 3.x | | v1.1.x | 1.29.x (chart 0.28.3) | 1.19+ | 3.x | | v1.0.x | 1.29.x (chart 0.28.3) | 1.19+ | 3.x | | v0.1.x | 1.28.0 | 1.19.2+ | 3.x | @@ -190,6 +193,7 @@ We follow a **roll forward** strategy rather than backporting: | Operator Version | PostgreSQL | DocumentDB Extension | DocumentDB Gateway | |------------------|------------|----------------------|--------------------| +| v1.1.x, v1.2.x | 18.x | `1.0-0` (image `1.0.0`) | `1.0.0` | | v1.0.x | 18.x | `1.0-0` (image `1.0.0`) | `1.0.0` | | v0.1.x | 16.x | 1.x | 1.x | diff --git a/docs/operator-public-documentation/v1/getting-started/before-you-start.md b/docs/operator-public-documentation/v1/getting-started/before-you-start.md index b51c9f677..e1f73d893 100644 --- a/docs/operator-public-documentation/v1/getting-started/before-you-start.md +++ b/docs/operator-public-documentation/v1/getting-started/before-you-start.md @@ -91,12 +91,13 @@ The operator and the DocumentDB engine have separate version numbers. The Helm c | Operator (Helm chart) | Default DocumentDB engine | Status | |-----------------------|---------------------------|--------| +| `1.2.0` | `1.0.0` (extension schema `1.0-0`) | Generally available; graduates the CRDs to the stable `documentdb.io/v1` API (`preview` is deprecated but still served) | | `1.1.0` | `1.0.0` (extension schema `1.0-0`) | Generally available; adds the combined-image fallback for clusters without image volume support | | `1.0.0` | `1.0.0` (extension schema `1.0-0`) | Generally available | | `1.0.0-rc1` | `1.0-RC2` | Release candidate | | `0.3.0` | `0.110.0` | Preview | -Use operator `1.1.0` for DocumentDB 1.0. To move existing clusters to 1.0, see [Upgrading to DocumentDB 1.0](../operations/upgrades.md#upgrading-to-documentdb-10). +Use operator `1.2.0` for DocumentDB 1.0. To move existing clusters to 1.0, see [Upgrading to DocumentDB 1.0](../operations/upgrades.md#upgrading-to-documentdb-10). ## Terminology diff --git a/docs/operator-public-documentation/v1/index.md b/docs/operator-public-documentation/v1/index.md index 3b7a53353..e7630e675 100644 --- a/docs/operator-public-documentation/v1/index.md +++ b/docs/operator-public-documentation/v1/index.md @@ -7,7 +7,7 @@ DocumentDB is the engine powering vCore-based Azure Cosmos DB for MongoDB. Built When you deploy a DocumentDB cluster, the operator creates and manages PostgreSQL instances, the [DocumentDB Gateway](https://github.com/microsoft/documentdb/tree/main/pg_documentdb_gw), and supporting Kubernetes resources. The gateway enables you to connect with MongoDB-compatible drivers, APIs, and tools, while PostgreSQL serves as the underlying storage engine. !!! note - Operator `1.1.0` is generally available for DocumentDB 1.0. The stable API version is `documentdb.io/v1`; the earlier `documentdb.io/preview` version is deprecated but still served for existing resources. We welcome your feedback and contributions! + Operator `1.2.0` is generally available for DocumentDB 1.0. The stable API version is `documentdb.io/v1`; the earlier `documentdb.io/preview` version is deprecated but still served for existing resources. We welcome your feedback and contributions! ## Quickstart diff --git a/docs/operator-public-documentation/v1/operations/upgrades.md b/docs/operator-public-documentation/v1/operations/upgrades.md index 1f9185504..cf930dfe3 100644 --- a/docs/operator-public-documentation/v1/operations/upgrades.md +++ b/docs/operator-public-documentation/v1/operations/upgrades.md @@ -68,8 +68,8 @@ Server-side apply (`--server-side --force-conflicts`) is required because the Do !!! warning Always use CRDs from the **same version** as the Helm chart you are installing. Using CRDs from `main` or a different release may introduce schema mismatches. -!!! important "Upgrading from 1.0.x" - This step is **required** when upgrading from operator `1.0.x`. Newer operators use the `documentdb.io/v1` API, which the `1.0.x` CRDs do not serve; the new operator cannot start until the updated CRDs are applied. See [Migrating to the `documentdb.io/v1` API](#migrating-to-the-documentdbiov1-api). +!!! important "Upgrading from 1.1.x or earlier" + This step is **required** when upgrading to operator `1.2.0` or later from `1.1.x`, `1.0.x` or earlier. Starting with `1.2.0`, the operator uses the `documentdb.io/v1` API, which older CRDs do not serve; the new operator cannot start until the updated CRDs are applied. See [Migrating to the `documentdb.io/v1` API](#migrating-to-the-documentdbiov1-api). ### Step 4: Upgrade the Operator @@ -115,11 +115,14 @@ helm rollback documentdb-operator -n documentdb-operator !!! note `helm rollback` reverts the operator deployment but does **not** revert CRDs. This is usually safe — CRD changes are additive, and the older operator ignores fields it does not recognize. Do **not** revert CRDs unless the [release notes](https://github.com/documentdb/documentdb-kubernetes-operator/releases) explicitly instruct you to, as removing fields from a CRD can invalidate existing resources. +!!! note "Rolling back from 1.2.0 to 1.1.x" + Keep the `1.2.0` CRDs when rolling back. They still serve the deprecated `documentdb.io/preview` version that `1.1.x` operators use, so the older operator keeps working. Do not re-apply the `1.1.x` CRDs: they do not serve `documentdb.io/v1`, and the API server rejects them once objects are stored as `v1`. + --- ### Migrating to the `documentdb.io/v1` API -Operator `1.0.x` served the `DocumentDB`, `Backup` and `ScheduledBackup` resources only as `documentdb.io/preview`. Later releases graduate them to the stable `documentdb.io/v1` API: +Operators before `1.2.0` (`1.0.x` and `1.1.x`) served the `DocumentDB`, `Backup` and `ScheduledBackup` resources only as `documentdb.io/preview`. Operator `1.2.0` graduates them to the stable `documentdb.io/v1` API: - `v1` is the storage version and the version the operator uses. - `preview` is **deprecated** but still served with an identical schema, so existing resources, manifests and GitOps pipelines keep working. Requests that use it return a deprecation warning. diff --git a/operator/documentdb-helm-chart/Chart.yaml b/operator/documentdb-helm-chart/Chart.yaml index b8e24e3fd..8c01709f9 100644 --- a/operator/documentdb-helm-chart/Chart.yaml +++ b/operator/documentdb-helm-chart/Chart.yaml @@ -1,6 +1,6 @@ apiVersion: v2 name: documentdb-operator -version: 1.1.1 +version: 1.2.0 description: A Helm chart for deploying the DocumentDB operator # The operator prefers the Kubernetes ImageVolume feature (GA in 1.35, beta and # opt-in via feature gate in 1.33/1.34, and needs containerd >= 2.1 or @@ -11,7 +11,7 @@ description: A Helm chart for deploying the DocumentDB operator kubeVersion: ">= 1.32.0-0" # appVersion controls the default image tag for operator, sidecar, and wal-replica images. # Database image versions (documentdb extension + gateway) are controlled by documentDbVersion in values.yaml. -appVersion: "1.1.1" +appVersion: "1.2.0" dependencies: - name: cloudnative-pg version: "0.28.3" diff --git a/operator/documentdb-helm-chart/tests/02_sidecar_injector_test.yaml b/operator/documentdb-helm-chart/tests/02_sidecar_injector_test.yaml index 3ced183f8..bfb41ba46 100644 --- a/operator/documentdb-helm-chart/tests/02_sidecar_injector_test.yaml +++ b/operator/documentdb-helm-chart/tests/02_sidecar_injector_test.yaml @@ -64,7 +64,7 @@ tests: asserts: - equal: path: spec.template.spec.containers[0].image - value: "ghcr.io/documentdb/documentdb-kubernetes-operator/sidecar:1.1.1" + value: "ghcr.io/documentdb/documentdb-kubernetes-operator/sidecar:1.2.0" - it: should use a custom sidecar image tag when set set: diff --git a/operator/documentdb-helm-chart/tests/03_wal_replica_test.yaml b/operator/documentdb-helm-chart/tests/03_wal_replica_test.yaml index 8de9b995f..8d77e3622 100644 --- a/operator/documentdb-helm-chart/tests/03_wal_replica_test.yaml +++ b/operator/documentdb-helm-chart/tests/03_wal_replica_test.yaml @@ -95,7 +95,7 @@ tests: asserts: - equal: path: spec.template.spec.containers[0].image - value: "ghcr.io/documentdb/documentdb-kubernetes-operator/wal-replica:1.1.1" + value: "ghcr.io/documentdb/documentdb-kubernetes-operator/wal-replica:1.2.0" - it: should use a custom wal-replica image tag when set set: diff --git a/operator/documentdb-helm-chart/tests/09_operator_deployment_test.yaml b/operator/documentdb-helm-chart/tests/09_operator_deployment_test.yaml index 678f9372a..4329b6667 100644 --- a/operator/documentdb-helm-chart/tests/09_operator_deployment_test.yaml +++ b/operator/documentdb-helm-chart/tests/09_operator_deployment_test.yaml @@ -46,7 +46,7 @@ tests: asserts: - equal: path: spec.template.spec.containers[0].image - value: "ghcr.io/documentdb/documentdb-kubernetes-operator/operator:1.1.1" + value: "ghcr.io/documentdb/documentdb-kubernetes-operator/operator:1.2.0" - it: should use a custom image tag when set set: @@ -71,7 +71,7 @@ tests: asserts: - equal: path: spec.template.spec.containers[0].image - value: "mcr.microsoft.com/documentdb/documentdb-kubernetes-operator/operator:1.1.1" + value: "mcr.microsoft.com/documentdb/documentdb-kubernetes-operator/operator:1.2.0" - it: should use a per-component full-ref repository verbatim, ignoring image.registry set: From 8c17c2db58889ef2c5c1bf88b65c5b4c5ac48b97 Mon Sep 17 00:00:00 2001 From: Rayhan Hossain Date: Mon, 16 Nov 2026 11:11:46 -0800 Subject: [PATCH 2/3] chore: set the 1.2.0 release date and list changes merged since - Release date 2026-11-17. - Add CHANGELOG entries for changes merged after the release PR was opened: OTel Collector outbound proxy (#476), documentdb_core upgraded with documentdb (#507), and stable documentation links and checks (#513, #514). #508 already added its own entry; #509 is internal. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> Copilot-Session: 9f1a71b4-9969-4456-9f65-8d19dd550d8e Signed-off-by: Rayhan Hossain --- CHANGELOG.md | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 9cde314a3..8fc72216e 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,7 +2,7 @@ ## [Unreleased] -## [1.2.0] - 2026-11-11 +## [1.2.0] - 2026-11-17 Operator release for DocumentDB 1.0; the default DocumentDB engine stays at `1.0.0` (extension schema `1.0-0`), so only the operator, sidecar, CRDs and Helm chart change. The `DocumentDB`, `Backup` and `ScheduledBackup` resources graduate to the stable `documentdb.io/v1` API. **Apply the 1.2.0 CRDs before `helm upgrade`**; existing `documentdb.io/preview` resources and manifests keep working and existing clusters are not restarted. @@ -14,8 +14,15 @@ Operator release for DocumentDB 1.0; the default DocumentDB engine stays at `1.0 - Upgrade the cert-manager Go dependency and pinned Arc/Fleet installations to `v1.19.6` to address [CVE-2026-62290](https://github.com/advisories/GHSA-8rvj-mm4h-c258). Existing clusters must upgrade their separately installed cert-manager controller to a patched release (`1.19.6` or `1.20.3`); upgrading the DocumentDB operator alone does not upgrade cert-manager. - Upgrade `github.com/klauspost/compress` to `v1.20.2` in the sidecar injector and shared, E2E, and long-haul test modules to address [GO-2026-6865](https://pkg.go.dev/vuln/GO-2026-6865). +### Major Features +- **Outbound proxy for the OTel Collector sidecar**: A new Helm `proxy` block (`isProxyEnabled`, `httpProxy`, `httpsProxy`, `noProxy`) routes the collector's OTLP export through a forward proxy such as Azure Arc Gateway. Cluster-local destinations always bypass the proxy, and private ranges do too unless `proxy.bypassPrivateRanges` is `false`. Off by default; proxy URLs with embedded credentials are not supported (#476). + +### Bug Fixes +- Engine schema upgrades now update `documentdb_core` before `documentdb` in one transaction, for both `schemaVersion: "auto"` and explicit versions. Previously `documentdb_core` stayed at the old version. Clusters already upgraded by an earlier operator are not repaired automatically; run `ALTER EXTENSION documentdb_core UPDATE;` on the primary, or they catch up at the next engine upgrade (#507). + ### Documentation - Connect to DocumentDB in the getting-started guides by port-forwarding the gateway Service (#467). +- Point README and playground links at stable released documentation, add an `llms.txt` index, and check released documentation links in CI (#513, #514). ## [1.1.1] - 2026-11-09 From b93b829a24f93f82618668a9a47c1dfd0c87e36e Mon Sep 17 00:00:00 2001 From: Rayhan Hossain Date: Thu, 19 Nov 2026 09:22:21 -0800 Subject: [PATCH 3/3] chore: set the 1.2.0 release date to 2026-11-19 Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> Copilot-Session: 9f1a71b4-9969-4456-9f65-8d19dd550d8e Signed-off-by: Rayhan Hossain --- CHANGELOG.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 8fc72216e..2ca4f75f9 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,7 +2,7 @@ ## [Unreleased] -## [1.2.0] - 2026-11-17 +## [1.2.0] - 2026-11-19 Operator release for DocumentDB 1.0; the default DocumentDB engine stays at `1.0.0` (extension schema `1.0-0`), so only the operator, sidecar, CRDs and Helm chart change. The `DocumentDB`, `Backup` and `ScheduledBackup` resources graduate to the stable `documentdb.io/v1` API. **Apply the 1.2.0 CRDs before `helm upgrade`**; existing `documentdb.io/preview` resources and manifests keep working and existing clusters are not restarted.