Upgrade cluster first, then run tests

This commit is contained in:
Peter Rifel 2021-03-13 09:30:18 -06:00
parent 7c8eb0cb10
commit ae7e621bcf
No known key found for this signature in database
GPG Key ID: BC6469E5B16DB2B6
1 changed files with 9 additions and 9 deletions

View File

@ -47,6 +47,15 @@ kubetest2 kops ${KUBETEST2_COMMON_ARGS} \
--kubernetes-version=v1.18.15 \
--create-args="--networking calico"
kops set cluster ${CLUSTER_NAME} cluster.spec.kubernetesVersion=v1.19.7
kops update cluster
kops update cluster --admin --yes
kops rolling-update cluster
kops rolling-update cluster --yes --validation-timeout 30m
kops validate cluster
KUBECONFIG=${HOME}/.kube/config
TEST_ARGS="--kubeconfig=${KUBECONFIG}"
if [[ "${CLOUD_PROVIDER}" == "aws" ]]; then
@ -71,12 +80,3 @@ kubetest2 kops ${KUBETEST2_COMMON_ARGS} \
--skip-regex="\[Slow\]|\[Serial\]|\[Disruptive\]|\[Flaky\]|\[Feature:.+\]|\[HPA\]|Dashboard|RuntimeClass|RuntimeHandler|TCP.CLOSE_WAIT|Projected.configMap.optional.updates" \
--test-args="${TEST_ARGS}"
kops set cluster ${CLUSTER_NAME} cluster.spec.kubernetesVersion=v1.19.7
kops update cluster
kops update cluster --admin --yes
kops rolling-update cluster
kops rolling-update cluster --yes --validation-timeout 30m
kops validate cluster