Skip to content

Commit be717db

Browse files
carolynhuSteven Dake
authored and
Steven Dake
committed
update upgrade test script to have --force flag and proper testing versions (istio#18570)
1 parent 276ba6e commit be717db

File tree

2 files changed

+10
-6
lines changed

2 files changed

+10
-6
lines changed

prow/upgrade-tests.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,13 +28,13 @@ WD=$(cd "$WD"; pwd)
2828
ROOT=$(dirname "$WD")
2929

3030
# Set up inputs needed by /istio/istio/tests/upgrade/test_crossgrade.sh, the default settings is to test upgrade from
31-
# 1.3.1 to 1.3.2 using helm chart
31+
# 1.3.0 to 1.3.4 using helm chart
3232
# These environment variables are passed by /istio/test-infra/prow/cluster/jobs istio periodic upgrade jobs
3333
export SOURCE_HUB=${SOURCE_HUB:-"docker.io/istio"}
34-
export SOURCE_TAG=${SOURCE_TAG:-"1.3.1"}
34+
export SOURCE_TAG=${SOURCE_TAG:-"1.3.0"}
3535
export SOURCE_RELEASE_PATH=${SOURCE_RELEASE_PATH:-"https://github.com/istio/istio/releases/download/${SOURCE_TAG}"}
3636
export TARGET_HUB=${TARGET_HUB:-"docker.io/istio"}
37-
export TARGET_TAG=${TARGET_TAG:-"1.3.2"}
37+
export TARGET_TAG=${TARGET_TAG:-"1.3.4"}
3838
export TARGET_RELEASE_PATH=${TAGET_RELEASE_PATH:-"https://github.com/istio/istio/releases/download/${TARGET_TAG}"}
3939
export INSTALL_OPTIONS=${ISTALL_OPTIONS:-"helm"}
4040
export FROM_PATH=${FROM_PATH:-"$(mktemp -d from_dir.XXXXXX)"}

tests/upgrade/test_crossgrade.sh

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -245,12 +245,17 @@ installIstioAtVersionUsingIstioctl(){
245245
}
246246

247247
# istioctl x upgrade supports upgrade istio release version
248-
# from 1.3.x to 1.3.y
249248
# from 1.3.x to 1.4.0
249+
# 1.3.3 to 1.4.0
250+
# 1.3.0 to 1.4.0 --force
250251
upgradeIstioAtVersionUsingIstioctl(){
251252
writeMsg "istioctl upgrade istio using version ${2} from ${3}."
252253
istioctl_path="${3}"/bin
253-
"${istioctl_path}"/istioctl experimental manifest upgrade --skip-confirmation
254+
if "${FROM_TAG}" < "1.3.3"; then
255+
"${istioctl_path}"/istioctl experimental manifest upgrade --skip-confirmation --force
256+
else
257+
"${istioctl_path}"/istioctl experimental manifest upgrade --skip-confirmation
258+
fi
254259
}
255260

256261
istioInstallOptions() {
@@ -494,7 +499,6 @@ resetConfigMap istio-sidecar-injector "${TMP_DIR}"/sidecar-injector-configmap.ya
494499
restartDataPlane echosrv-deployment-v1
495500
sleep 140
496501

497-
498502
istioInstallOptions
499503
waitForPodsReady "${ISTIO_NAMESPACE}"
500504

0 commit comments

Comments
 (0)