@@ -39,13 +39,16 @@ M3_DEV_ENV_PATH="${M3_DEV_ENV_PATH:-${WORKING_DIR}/metal3-dev-env}"
3939clone_repo " ${M3_DEV_ENV_REPO} " " ${M3_DEV_ENV_BRANCH} " " ${M3_DEV_ENV_PATH} "
4040
4141# Config devenv
42+ # SKIP_NODE_IMAGE_PREPULL is set to true to avoid dev-env downloading the node
43+ # image
4244cat << -EOF >"${M3_DEV_ENV_PATH} /config_${USER} .sh"
4345export CAPI_VERSION="v1beta2"
4446export CAPM3_VERSION=${CAPM3_VERSION:- " v1beta1" }
4547export NUM_NODES=${NUM_NODES:- " 4" }
4648export KUBERNETES_VERSION=${KUBERNETES_VERSION}
4749export IMAGE_OS=${IMAGE_OS}
4850export FORCE_REPO_UPDATE="false"
51+ export SKIP_NODE_IMAGE_PREPULL="true"
4952export USE_IRSO="${USE_IRSO:- false} "
5053EOF
5154
@@ -65,19 +68,22 @@ case "${GINKGO_FOCUS:-}" in
6568 clusterctl-upgrade|k8s-upgrade|basic|integration|remediation|k8s-conformance|capi-md-tests)
6669 # if running basic, integration, k8s upgrade, clusterctl-upgrade, remediation, k8s conformance or capi-md tests, skip apply bmhs in dev-env
6770 echo ' export SKIP_APPLY_BMH="true"' >> " ${M3_DEV_ENV_PATH} /config_${USER} .sh"
71+ echo ' export SKIP_NODE_IMAGE_PREPULL="true"' >> " ${M3_DEV_ENV_PATH} /config_${USER} .sh"
6872 ;;
6973
7074 features)
7175 mkdir -p " ${CAPI_CONFIG_FOLDER} "
7276 echo " ENABLE_BMH_NAME_BASED_PREALLOCATION: true" > " ${CAPI_CONFIG_FOLDER} /clusterctl.yaml"
7377 echo ' export SKIP_APPLY_BMH="true"' >> " ${M3_DEV_ENV_PATH} /config_${USER} .sh"
78+ echo ' export SKIP_NODE_IMAGE_PREPULL="true"' >> " ${M3_DEV_ENV_PATH} /config_${USER} .sh"
7479 ;;
7580
7681 scalability)
7782 # if running a scalability tests, configure dev-env with fakeIPA
7883 export NUM_NODES=" ${NUM_NODES:- 50} "
7984 echo ' export NODES_PLATFORM="fake"' >> " ${M3_DEV_ENV_PATH} /config_${USER} .sh"
8085 echo ' export SKIP_APPLY_BMH="true"' >> " ${M3_DEV_ENV_PATH} /config_${USER} .sh"
86+ echo ' export SKIP_NODE_IMAGE_PREPULL="true"' >> " ${M3_DEV_ENV_PATH} /config_${USER} .sh"
8187 sed -i " s/^export NUM_NODES=.*/export NUM_NODES=${NUM_NODES:- 50} /" " ${M3_DEV_ENV_PATH} /config_${USER} .sh"
8288 mkdir -p " ${CAPI_CONFIG_FOLDER} "
8389 echo ' CLUSTER_TOPOLOGY: true' > " ${CAPI_CONFIG_FOLDER} /clusterctl.yaml"
0 commit comments