diff options
| author | Zuul <zuul@review.opendev.org> | 2026-03-31 12:07:07 +0000 |
|---|---|---|
| committer | Gerrit Code Review <review@openstack.org> | 2026-03-31 12:07:07 +0000 |
| commit | 205bc944be6c67d81bc2b9f3b7d3303faaf5b866 (patch) | |
| tree | f652da6676ef63c55c4ef63fe74bf00752036a44 /kolla/image/tasks.py | |
| parent | d215d4ba30518ef2bd0297cba3c8e21f2afe5caf (diff) | |
| parent | cbca935b87b4606534fc08d2cae80d864af51c7c (diff) | |
| download | kolla-205bc944be6c67d81bc2b9f3b7d3303faaf5b866.tar.gz kolla-205bc944be6c67d81bc2b9f3b7d3303faaf5b866.zip | |
Merge "Add OCI standard labels to container images"
Diffstat (limited to 'kolla/image/tasks.py')
| -rw-r--r-- | kolla/image/tasks.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/kolla/image/tasks.py b/kolla/image/tasks.py index 39d759390..6bee905f7 100644 --- a/kolla/image/tasks.py +++ b/kolla/image/tasks.py @@ -407,6 +407,9 @@ class BuildTask(EngineTask): buildargs = self.update_buildargs() kwargs = {} + if hasattr(image, 'labels') and image.labels: + kwargs['labels'] = image.labels + if self.conf.engine == engine.Engine.PODMAN.value: # TODO(kevko): dockerfile path is a workaround, # should be removed as soon as it will be fixed in podman-py |
