Skip to content

Commit f22b594

Browse files
authored
Add registry to the no_proxy when is configured (#1358)
1 parent e2ba1e2 commit f22b594

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

network.sh

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -181,4 +181,9 @@ if [[ ! -z "$INSTALLER_PROXY" ]]; then
181181
if [[ "$PROVISIONING_NETWORK_PROFILE" == "Disabled" ]]; then
182182
NO_PROXY=${EXT_SUBNET},9999
183183
fi
184+
185+
# When a local registry is enabled (usually in disconnected environments), let's add it to the no proxy list
186+
if [[ ! -z "${MIRROR_IMAGES}" || ! -z "${ENABLE_LOCAL_REGISTRY}" ]]; then
187+
NO_PROXY=$NO_PROXY,$LOCAL_REGISTRY_DNS_NAME
188+
fi
184189
fi

0 commit comments

Comments
 (0)