diff options
| author | Piotr Milewski <vurmil@gmail.com> | 2025-12-23 10:30:02 +0100 |
|---|---|---|
| committer | Piotr Milewski <vurmil@gmail.com> | 2026-03-30 20:47:21 +0200 |
| commit | cbca935b87b4606534fc08d2cae80d864af51c7c (patch) | |
| tree | 96b0b83c431fd79c14107838a0e97ff0c4dc7cd5 /tools/version-check.py | |
| parent | 9a09f82646c577c4b484eeaac7bf56d8005da11b (diff) | |
| download | kolla-cbca935b87b4606534fc08d2cae80d864af51c7c.tar.gz kolla-cbca935b87b4606534fc08d2cae80d864af51c7c.zip | |
Add OCI standard labels to container images
Currently, Kolla images lack standard metadata, making it difficult
to identify their build source, creation time, or exact version solely
by inspecting the image artifact.
This patch introduces the addition of Open Container Initiative (OCI)
standard labels to all generated images. The build process now detects
metadata (utilizing `direct_url.json` for pip-installed packages to
avoid subprocess calls) and injects the following labels into the
container runtime config:
* org.opencontainers.image.authors
* org.opencontainers.image.created
* org.opencontainers.image.description
* org.opencontainers.image.licenses
* org.opencontainers.image.revision
* org.opencontainers.image.source
* org.opencontainers.image.title
* org.opencontainers.image.url
* org.opencontainers.image.version
Example output:
"Labels": {
"org.opencontainers.image.authors": "Kolla Project (https://launchpad.net/kolla)",
"org.opencontainers.image.created": "2025-12-22T14:02:47.015819",
"org.opencontainers.image.description": "OpenStack Kolla keystone-ssh image",
"org.opencontainers.image.licenses": "Apache-2.0",
"org.opencontainers.image.revision": "96b54022857ccef8dc6bb11789abe32119827109",
"org.opencontainers.image.source": "https://opendev.org/openstack/kolla",
"org.opencontainers.image.title": "keystone-ssh",
"org.opencontainers.image.url": "https://opendev.org/openstack/kolla",
"org.opencontainers.image.version": "master-ubuntu-noble"
}
This enhancement improves the interoperability of Kolla images with
standard container tools and registries that display OCI metadata.
Change-Id: I3451940c90180ba91759c839987434e94251e32e
Signed-off-by: Piotr Milewski <vurmil@gmail.com>
Diffstat (limited to 'tools/version-check.py')
0 files changed, 0 insertions, 0 deletions
