Skip to content

Commit a940c34

Browse files
Merge pull request #2853 from Nordix/add/skip-image-prepull-capm3-e2e
🌱 Add SKIP_NODE_IMAGE_PREPULL var in ci-e2e.sh
2 parents 8b3ced3 + 1325eaf commit a940c34

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

scripts/ci-e2e.sh

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,13 +39,16 @@ M3_DEV_ENV_PATH="${M3_DEV_ENV_PATH:-${WORKING_DIR}/metal3-dev-env}"
3939
clone_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
4244
cat <<-EOF >"${M3_DEV_ENV_PATH}/config_${USER}.sh"
4345
export CAPI_VERSION="v1beta2"
4446
export CAPM3_VERSION=${CAPM3_VERSION:-"v1beta1"}
4547
export NUM_NODES=${NUM_NODES:-"4"}
4648
export KUBERNETES_VERSION=${KUBERNETES_VERSION}
4749
export IMAGE_OS=${IMAGE_OS}
4850
export FORCE_REPO_UPDATE="false"
51+
export SKIP_NODE_IMAGE_PREPULL="true"
4952
export USE_IRSO="${USE_IRSO:-false}"
5053
EOF
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

Comments
 (0)