Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 17 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@

## [Unreleased]

## [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.

### 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).

Expand All @@ -10,21 +14,33 @@
- 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

### Security
- Refresh operator runtime OS packages at build time. Operator-track candidate builds pull current base images.

### 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.

Expand Down
4 changes: 4 additions & 0 deletions docs/designs/release-strategy.md
Original file line number Diff line number Diff line change
Expand Up @@ -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 |
Expand Down Expand Up @@ -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 |
Expand All @@ -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 |
Expand All @@ -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 |

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
2 changes: 1 addition & 1 deletion docs/operator-public-documentation/v1/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down Expand Up @@ -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.
Expand Down
4 changes: 2 additions & 2 deletions operator/documentdb-helm-chart/Chart.yaml
Original file line number Diff line number Diff line change
@@ -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
Expand All @@ -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"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -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:
Expand Down
Loading