Skip to content

fix: stop the combined image inheriting CNPG's labels - #493

Merged
guanzhousongmicrosoft merged 1 commit into
documentdb:mainfrom
guanzhousongmicrosoft:developer/guanzhou/combined-image-labels
Nov 5, 2026
Merged

guanzhousongmicrosoft merged 1 commit into
documentdb:mainfrom
guanzhousongmicrosoft:developer/guanzhou/combined-image-labels

Conversation

@guanzhousongmicrosoft

Copy link
Copy Markdown
Member

documentdb-combined inherits every OCI label from ghcr.io/cloudnative-pg/postgresql:18-minimal-trixie except source and revision, which the build sets. The published 18-1.0.0 therefore 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. licenses follows 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 builds FROM scratch, so it doesn't have this problem.

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

@documentdb-triage-tool documentdb-triage-tool Bot added the bug Something isn't working label Nov 4, 2026
@documentdb-triage-tool

Copy link
Copy Markdown

🤖 Auto-triaged by documentdb-triage-tool.

Applied: bug
Project fields suggested: Component build · Priority P1 · Effort S · Status Needs Review
Confidence: 0.90 (mixed)

Reasoning

effort 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 @patty-chow so the rules can be tuned. The bot will not re-label items that already have component labels.

@guanzhousongmicrosoft
guanzhousongmicrosoft merged commit e2209d7 into documentdb:main Nov 5, 2026
44 checks passed
hossain-rayhan added a commit to hossain-rayhan/documentdb-kubernetes-operator that referenced this pull request Nov 16, 2026
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]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working triage

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants