Repository navigation
fix: stop the combined image inheriting CNPG's labels - #493
Conversation
Signed-off-by: Guanzhou Song <[email protected]>
There was a problem hiding this comment.
🟢 Approval recommended
No active review issues remain for the DocumentDB-specific OCI metadata update.
No open issues 🎉
What changed in this PR
Updates the combined PostgreSQL/DocumentDB image’s OCI metadata so registries and scanners identify it as a DocumentDB image rather than the inherited CloudNativePG base image.
Changes:
- Overrides the title, description, vendor, authors, license, URL, and documentation labels.
- Sets MIT as the image-building project’s license, consistent with the stated labeling convention.
| File | Description |
|---|---|
.github/dockerfiles/Dockerfile_combined |
Adds DocumentDB-specific OCI labels to replace inherited CloudNativePG metadata. |
Review effort: Balanced
|
🤖 Auto-triaged by documentdb-triage-tool. Applied: Reasoningeffort from diff stats (10+0 LOC, 1 files); LLM: Incorrect OCI metadata labels inherited from CNPG base image misrepresent the project's identity and license, actively blocking MCR mirroring and causing compliance issues for published images. If a label is wrong, remove it manually and ping |
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]>
documentdb-combinedinherits every OCI label fromghcr.io/cloudnative-pg/postgresql:18-minimal-trixieexceptsourceandrevision, which the build sets. The published18-1.0.0therefore calls itself "CloudNativePG PostgreSQL 18.6 minimal" from "The CloudNativePG Contributors" under Apache-2.0. Registries and scanners show those values, and we're about to mirror the image to MCR (microsoft/mcr#5407) as MIT.The Dockerfile now sets title, description, vendor, authors, licenses, url and documentation.
licensesfollows the same convention as CNPG's label: it names the license of the project that builds the image, not of every package inside it. The extension-only image buildsFROM scratch, so it doesn't have this problem.