Support alternative container registry for jobs

In case of reproducer, local run and development there is need to
support a custom registry that can be configured in the job
definition.
Add alt_container_registry as an option keeping all defaults same.
Change-Id: Ide24dad09e058324c74f703f7d1633ef59d129d1
This commit is contained in:
Sagi Shnaidman 2021-03-24 15:45:54 +02:00 committed by Shnaidman Sagi (Sergey)
parent bfb6e2b483
commit e0b3a7f329
8 changed files with 8 additions and 8 deletions

View File

@ -16,7 +16,7 @@ inject_images:
release: queens
dlrn_hash_tag: "{{ job.provider_dlrn_hash_tag_branch[release]|default('current-tripleo') }}"
dlrn_hash_tag_newest: current
docker_registry_host: "{{ job.build_container_images|default(false)|bool | ternary('127.0.0.1:5001', 'docker.io') }}"
docker_registry_host: "{{ job.build_container_images|default(false)|bool | ternary('127.0.0.1:5001', job.alt_container_registry|default('docker.io')) }}"
docker_registry_namespace: tripleoqueens
docker_image_tag: "{{ dlrn_hash|default(dlrn_hash_tag) }}"
overcloud_image_url: https://images.rdoproject.org/queens/rdo_trunk/current-tripleo/overcloud-full.tar

View File

@ -16,7 +16,7 @@ inject_images:
release: rocky
dlrn_hash_tag: current-tripleo
dlrn_hash_tag_newest: current
docker_registry_host: "{{ job.build_container_images|default(false)|bool | ternary('127.0.0.1:5001', 'quay.io') }}"
docker_registry_host: "{{ job.build_container_images|default(false)|bool | ternary('127.0.0.1:5001', job.alt_container_registry|default('quay.io')) }}"
docker_registry_namespace: tripleorocky
docker_image_tag: "{{ dlrn_hash|default(dlrn_hash_tag) }}"
overcloud_image_url: https://images.rdoproject.org/rocky/rdo_trunk/current-tripleo/overcloud-full.tar

View File

@ -19,7 +19,7 @@ distro_deps_repo_name: deps
dlrn_hash_tag: current-tripleo
dlrn_hash_tag_newest: current
dlrn_baseurl: "https://trunk.rdoproject.org/{{ distro_ver }}-{{ release }}"
docker_registry_host: "{{ job.build_container_images|default(false)|bool | ternary('127.0.0.1:5001', 'quay.io') }}"
docker_registry_host: "{{ job.build_container_images|default(false)|bool | ternary('127.0.0.1:5001', job.alt_container_registry|default('quay.io')) }}"
docker_registry_namespace: "tripleo{{ release }}"
docker_image_tag: "{{ dlrn_hash|default(dlrn_hash_tag) }}"
docker_openshift_tag: v3.11.0

View File

@ -20,7 +20,7 @@ distro_deps_repo_name: deps
dlrn_hash_tag: "{{ job.provider_dlrn_hash_tag_branch[release]|default('current-tripleo') }}"
dlrn_hash_tag_newest: current
dlrn_baseurl: "https://trunk.rdoproject.org/{{ distro_ver }}-{{ release }}"
docker_registry_host: "{{ job.build_container_images|default(false)|bool | ternary('127.0.0.1:5001', 'docker.io') }}"
docker_registry_host: "{{ job.build_container_images|default(false)|bool | ternary('127.0.0.1:5001', job.alt_container_registry|default('docker.io')) }}"
docker_registry_namespace: "tripleo{{ release }}"
docker_image_tag: "{{ dlrn_hash|default(dlrn_hash_tag) }}"
docker_openshift_tag: v3.11.0

View File

@ -20,7 +20,7 @@ docker_registry_host: >-
{%- elif job.consumer_job | default(false) | bool -%}
{{ job.registry_ip_address_branch[release] }}:5001
{%- else -%}
docker.io
{{ job.alt_container_registry|default('docker.io') }}
{%- endif -%}
docker_registry_namespace: "tripleo{{ release }}"
docker_image_tag: "{{ dlrn_hash|default(dlrn_hash_tag) }}"

View File

@ -14,7 +14,7 @@ docker_registry_host: >-
{%- elif job.consumer_job | default(false) | bool -%}
{{ job.registry_ip_address_branch[release] }}:5001
{%- else -%}
docker.io
{{ job.alt_container_registry|default('docker.io') }}
{%- endif -%}
docker_registry_namespace: tripleotraincentos8
docker_image_tag: "{{ dlrn_hash|default(dlrn_hash_tag) }}"

View File

@ -17,7 +17,7 @@ docker_registry_host: >-
{%- elif job.consumer_job | default(false) | bool -%}
{{ job.registry_ip_address_branch[release] }}:5001
{%- else -%}
docker.io
{{ job.alt_container_registry|default('docker.io') }}
{%- endif -%}
# note.. namespace tripleoussuri has been
# squatted on by another owner

View File

@ -21,7 +21,7 @@ docker_registry_host: >-
{%- elif job.consumer_job | default(false) | bool -%}
{{ job.registry_ip_address_branch[release] }}:5001
{%- else -%}
docker.io
{{ job.alt_container_registry|default('docker.io') }}
{%- endif -%}
docker_registry_namespace: "tripleo{{ release }}"
docker_image_tag: "{{ dlrn_hash|default(dlrn_hash_tag) }}"