From 39d933c4961d3c291d7770abe2857f61ad1a0d51 Mon Sep 17 00:00:00 2001 From: David Kornel Date: Tue, 23 Jan 2024 13:22:28 +0100 Subject: [PATCH] Add proxy and stage image reg into insecure config (#326) --- .../tasks/infra-setup/configure_worker_cluster.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/install/roles/automation-hub/tasks/infra-setup/configure_worker_cluster.yaml b/install/roles/automation-hub/tasks/infra-setup/configure_worker_cluster.yaml index 75f42382..e6f22b40 100644 --- a/install/roles/automation-hub/tasks/infra-setup/configure_worker_cluster.yaml +++ b/install/roles/automation-hub/tasks/infra-setup/configure_worker_cluster.yaml @@ -87,7 +87,7 @@ KUBECONFIG: "{{ kubeconfig_path }}/{{ worker.name }}" - name: "Set anonymous pull rights on {{ worker.name }}" - shell: "oc patch --type=merge --patch='{ \"spec\": { \"registrySources\": { \"insecureRegistries\": [ \"default-route-openshift-image-registry.apps.{{ worker.name }}.{{ cluster_domain }}\" ] } } }' image.config.openshift.io/cluster" + shell: "oc patch --type=merge --patch='{ \"spec\": { \"registrySources\": { \"insecureRegistries\": [ \"default-route-openshift-image-registry.apps.{{ worker.name }}.{{ cluster_domain }}\", \"{{ insecure_registry_name }}\", \"registry.stage.redhat.io\" ] } } }' image.config.openshift.io/cluster" environment: KUBECONFIG: "{{ kubeconfig_path }}/{{ worker.name }}"