Skip to content

Add OCI standard image labels - #1961

Merged
rahulait merged 1 commit into
mainfrom
add-oci-image-labels
Aug 18, 2026
Merged

rahulait merged 1 commit into
mainfrom
add-oci-image-labels

Conversation

@karthikvetrivel

@karthikvetrivel karthikvetrivel commented Aug 13, 2026 •

Copy link
Copy Markdown
Contributor

This PR adds well-known OCI Image labels to the k8s-device-plugin image metadata.

Before

$ docker inspect --format='{{json .Config.Labels}}' nvcr.io/nvidia/k8s-device-plugin:v0.19.3 | jq
{
  "com.nvidia.git-commit": "570e776d6813cb9f3e9c8c105cf8d79989db6650",
  "description": "See summary",
  "io.k8s.display-name": "NVIDIA Device Plugin",
  "name": "NVIDIA Device Plugin",
  "org.opencontainers.image.created": "2026-06-11T18:01:15Z",
  "org.opencontainers.image.documentation": "https://developer.download.nvidia.com/distroless-oss/docs.html",
  "org.opencontainers.image.revision": "d5891068bf92407b17825c29f462da9643457b04",
  "org.opencontainers.image.title": "Golang Distroless Image",
  "org.opencontainers.image.url": "https://developer.download.nvidia.com/distroless-oss/index.html",
  "org.opencontainers.image.version": "v4.0.8",
  "release": "N/A",
  "summary": "NVIDIA device plugin for Kubernetes",
  "vendor": "NVIDIA",
  "version": "570e776d-amd64"
}

After — built from this branch

$ docker inspect --format='{{json .Config.Labels}}' nvcr.io/nvidia/k8s-device-plugin:062ee70b | jq
{
  "com.nvidia.git-commit": "062ee70bd2c94398b2da1bc3b5b5c40a58e20b3e",
  "description": "NVIDIA device plugin for Kubernetes",
  "io.k8s.display-name": "NVIDIA Device Plugin",
  "name": "NVIDIA Device Plugin",
  "org.opencontainers.image.base.name": "nvcr.io/nvidia/distroless/go",
  "org.opencontainers.image.created": "2026-08-17T18:55:03Z",
  "org.opencontainers.image.description": "NVIDIA device plugin for Kubernetes",
  "org.opencontainers.image.documentation": "https://docs.nvidia.com/datacenter/cloud-native/gpu-operator",
  "org.opencontainers.image.revision": "062ee70bd2c94398b2da1bc3b5b5c40a58e20b3e",
  "org.opencontainers.image.source": "https://github.com/NVIDIA/k8s-device-plugin.git",
  "org.opencontainers.image.title": "NVIDIA Device Plugin",
  "org.opencontainers.image.url": "https://catalog.ngc.nvidia.com/orgs/nvidia/containers/k8s-device-plugin",
  "org.opencontainers.image.vendor": "NVIDIA",
  "org.opencontainers.image.version": "062ee70b",
  "release": "N/A",
  "summary": "NVIDIA device plugin for Kubernetes",
  "vendor": "NVIDIA",
  "version": "062ee70b"
}

@karthikvetrivel
karthikvetrivel marked this pull request as ready for review August 13, 2026 21:28
@tariq1890

tariq1890 commented Aug 17, 2026 •

Copy link
Copy Markdown
Contributor

@karthikvetrivel Can you update the PR description? It still has pending CI build in it.

@rahulait rahulait 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.

LGTM

@karthikvetrivel

Copy link
Copy Markdown
Contributor Author

Updated — the After section now shows docker inspect output from an image built from this branch.

Signed-off-by: Karthik Vetrivel <kvetrivel@nvidia.com>
@rahulait
rahulait merged commit a5b7e1a into main Aug 18, 2026
12 checks passed
@rahulait
rahulait deleted the add-oci-image-labels branch August 18, 2026 04:47
@karthikvetrivel karthikvetrivel self-assigned this Aug 19, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants