3.5. 分层镜像准备条目
ContainerImagePrepare 参数的值是一个 YAML 列表。这意味着您可以指定多个条目。以下示例带有两个条目,director 使用所有镜像的最新版本,nova-api 镜像除外,该镜像使用标记为 15.0-44 的版本:
ContainerImagePrepare:
- tag_from_label: "{version}-{release}"
push_destination: true
excludes:
- nova-api
set:
namespace: registry.redhat.io/rhosp15-rhel8
name_prefix: openstack-
name_suffix: ''
tag: latest
- push_destination: true
includes:
- nova-api
set:
namespace: registry.redhat.io/rhosp15-rhel8
tag: 15.0-44
includes 和 excludes 条目控制每个条目的镜像过滤。匹配 includes 策略的镜像的优先级高于 excludes 匹配项。镜像名称必须包括 includes 或 excludes 值才被认为匹配。