3.10. 이미지 준비 항목 계층화
ContainerImagePrepare 매개변수의 값은 YAML 목록입니다. 즉, 여러 항목을 지정할 수 있습니다. 다음 예제에서는 두 개의 항목을 설명합니다. 여기서 director는 16.2-44 로 태그된 버전을 사용하는 nova-api 이미지를 제외하고 모든 이미지의 최신 버전을 사용합니다.
ContainerImagePrepare:
- tag_from_label: "{version}-{release}"
push_destination: true
excludes:
- nova-api
set:
namespace: registry.redhat.io/rhosp-rhel8
name_prefix: openstack-
name_suffix: ''
- push_destination: true
includes:
- nova-api
set:
namespace: registry.redhat.io/rhosp-rhel8
tag: 16.2-44
includes 및 excludes 매개 변수는 정규식을 사용하여 각 항목에 대한 이미지 필터링을 제어합니다. includes 설정과 일치하는 이미지가 excludes와 일치하는 이미지보다 우선합니다. 일치하는 이미지로 간주되려면 이미지 이름에 includes 또는 excludes 정규식 값이 포함되어야 합니다.