diff --git a/etc/kayobe/pulp.yml b/etc/kayobe/pulp.yml index c0073e2a1..e039df134 100644 --- a/etc/kayobe/pulp.yml +++ b/etc/kayobe/pulp.yml @@ -582,10 +582,11 @@ stackhpc_pulp_repository_container_repos_kolla_common: # List of Kolla container image repositories. stackhpc_pulp_repository_container_repos_kolla: >- {%- set repos = [] -%} + {%- set image_tags = lookup('pipe', 'python3 ' ~ kayobe_config_path ~ '/../../tools/kolla-images.py list-tags') | from_yaml -%} {%- for image in stackhpc_pulp_images_kolla_filtered -%} - {%- if image not in stackhpc_kolla_unbuildable_images[kolla_base_distro_and_version]-%} + {%- if image not in stackhpc_kolla_unbuildable_images[kolla_base_distro_and_version] -%} {%- set image_repo = kolla_docker_namespace ~ "/" ~ image -%} - {%- set repo = {"name": image_repo} -%} + {%- set repo = {"name": image_repo, "include_tags": image_tags[image]} -%} {%- set _ = repos.append(stackhpc_pulp_repository_container_repos_kolla_common | combine(repo)) -%} {%- endif -%} {%- endfor -%} diff --git a/releasenotes/notes/use-include-tags-for-client-pulp-cf46d328b30162be.yaml b/releasenotes/notes/use-include-tags-for-client-pulp-cf46d328b30162be.yaml new file mode 100644 index 000000000..7103ef604 --- /dev/null +++ b/releasenotes/notes/use-include-tags-for-client-pulp-cf46d328b30162be.yaml @@ -0,0 +1,6 @@ +--- +features: + - | + Restrict the content that is synced to the client by using include tags. + This feature ensures that the tags as defined within + ``kolla-image-tags.yml`` are synced.