File tree Expand file tree Collapse file tree 1 file changed +1
-5
lines changed Expand file tree Collapse file tree 1 file changed +1
-5
lines changed Original file line number Diff line number Diff line change @@ -73,10 +73,6 @@ export SSH_PUB_KEY="${SSH_PUB_KEY:-$(cat $HOME/.ssh/id_rsa.pub)}"
73
73
74
74
# mirror images for installation in restricted network
75
75
export MIRROR_IMAGES=${MIRROR_IMAGES:- }
76
- # For IPv6 (default case) mirror images are used since quay doesn't support IPv6
77
- if [[ -z " ${IP_STACK:- } " || " $IP_STACK " = " v6" || " $IP_STACK " = " v6v4" ]]; then
78
- export MIRROR_IMAGES=${MIRROR_IMAGES:- true}
79
- fi
80
76
81
77
# identify the command used to mirror images, either 'oc-adm' or 'oc-mirror'
82
78
export MIRROR_COMMAND=${MIRROR_COMMAND:- oc-adm}
@@ -485,7 +481,7 @@ if [[ ! -z ${AGENT_E2E_TEST_BOOT_MODE} ]]; then
485
481
esac
486
482
fi
487
483
488
- if [[ -n " $MIRROR_IMAGES " && " ${MIRROR_IMAGES,,} " != " false" ]]; then
484
+ if [[ ( -n " $MIRROR_IMAGES " && " ${MIRROR_IMAGES,,} " ! = " false" ) || -z " ${IP_STACK :- } " || " $IP_STACK " = " v6 " ]]; then
489
485
490
486
if [[ " ${MIRROR_COMMAND} " == " oc-mirror" ]]; then
491
487
# Use the string that is generated by the output of oc-mirror
You can’t perform that action at this time.
0 commit comments