Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit deec48f

Browse files
author
Isaac Hollander McCreery
committed
Add 7-stage upgrade configs to configure_upgrade_step
1 parent 035bea1 commit deec48f

File tree

1 file changed

+22
-9
lines changed

1 file changed

+22
-9
lines changed

hack/jenkins/e2e.sh

Lines changed: 22 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -51,11 +51,12 @@ function join_regex_no_empty() {
5151
#
5252
# These suites:
5353
# step1: launch a cluster at $old_version,
54-
# step2: upgrades the master to $new_version,
55-
# step3: runs $old_version e2es,
56-
# step4: upgrades the rest of the cluster,
57-
# step5: runs $old_version e2es again, then
58-
# step6: runs $new_version e2es and tears down the cluster.
54+
# step2: runs $new_version Kubectl e2es,
55+
# step3: upgrades the master to $new_version,
56+
# step4: runs $old_version e2es,
57+
# step5: upgrades the rest of the cluster,
58+
# step6: runs $old_version e2es again, then
59+
# step7: runs $new_version e2es and tears down the cluster.
5960
#
6061
# Assumes globals:
6162
# $JOB_NAME
@@ -123,6 +124,18 @@ function configure_upgrade_step() {
123124
;;
124125

125126
step2)
127+
# Run new e2e kubectl tests
128+
JENKINS_PUBLISHED_VERSION="${new_version}"
129+
JENKINS_FORCE_GET_TARS=y
130+
131+
E2E_OPT="--check_version_skew=false"
132+
E2E_UP="false"
133+
E2E_TEST="true"
134+
E2E_DOWN="false"
135+
GINKGO_TEST_ARGS="--ginkgo.focus=Kubectl"
136+
;;
137+
138+
step3)
126139
# Use upgrade logic of version we're upgrading to.
127140
JENKINS_PUBLISHED_VERSION="${new_version}"
128141
JENKINS_FORCE_GET_TARS=y
@@ -134,7 +147,7 @@ function configure_upgrade_step() {
134147
GINKGO_TEST_ARGS="--ginkgo.focus=Cluster\supgrade.*upgrade-master --upgrade-target=${new_version}"
135148
;;
136149

137-
step3)
150+
step4)
138151
# Run old e2es
139152
JENKINS_PUBLISHED_VERSION="${old_version}"
140153
JENKINS_FORCE_GET_TARS=y
@@ -151,7 +164,7 @@ function configure_upgrade_step() {
151164
fi
152165
;;
153166

154-
step4)
167+
step5)
155168
# Use upgrade logic of version we're upgrading to.
156169
JENKINS_PUBLISHED_VERSION="${new_version}"
157170
JENKINS_FORCE_GET_TARS=y
@@ -163,7 +176,7 @@ function configure_upgrade_step() {
163176
GINKGO_TEST_ARGS="--ginkgo.focus=Cluster\supgrade.*upgrade-cluster --upgrade-target=${new_version}"
164177
;;
165178

166-
step5)
179+
step6)
167180
# Run old e2es
168181
JENKINS_PUBLISHED_VERSION="${old_version}"
169182
JENKINS_FORCE_GET_TARS=y
@@ -180,7 +193,7 @@ function configure_upgrade_step() {
180193
fi
181194
;;
182195

183-
step6)
196+
step7)
184197
# Run new e2es
185198
JENKINS_PUBLISHED_VERSION="${new_version}"
186199
JENKINS_FORCE_GET_TARS=y

0 commit comments

Comments
 (0)