Skip to content

Commit 7403d9a

Browse files
author
David Sariel
committed
[openshift_setup] pre-pull RBAC proxy images on master nodes
When digest mirrors are configured, optionally pre-pull any RBAC proxy images found in the mirror list on all master nodes. This avoids pull failures at workload deployment time when the cluster cannot reach the original registry directly. The feature is controlled by cifmw_openshift_setup_prepull_rbac_images (default: true) and is skipped when no digest mirrors are defined or when no mirrors match the RBAC proxy image pattern. Each image is pulled via oc debug node using the node's existing kubelet auth credentials. Failures are non-fatal and a summary of successful pulls is logged at the end. Signed-off-by: David Sariel dsariel@redhat.com ANVIL-142
1 parent 44c0639 commit 7403d9a

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

roles/openshift_setup/tasks/configure_registries.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,13 @@
3737
- "{{ cifmw_update_containers_registry }}"
3838
allowedRegistries: "{{ all_registries }}"
3939

40+
- name: Print cifmw_openshift_setup_digest_mirrors value
41+
ansible.builtin.debug:
42+
msg:
43+
- "Defined: {{ cifmw_openshift_setup_digest_mirrors is defined }}"
44+
- "Type: {{ cifmw_openshift_setup_digest_mirrors | type_debug }}"
45+
- "Value: {{ cifmw_openshift_setup_digest_mirrors | default('UNDEFINED') }}"
46+
4047
- name: Create ImageDigestMirrorSet repository digest mirrors
4148
when:
4249
- cifmw_openshift_setup_digest_mirrors is defined

0 commit comments

Comments
 (0)