mirror of https://github.com/kubernetes/kops.git
Upgrade cluster first, then run tests
This commit is contained in:
parent
7c8eb0cb10
commit
ae7e621bcf
|
@ -47,6 +47,15 @@ kubetest2 kops ${KUBETEST2_COMMON_ARGS} \
|
||||||
--kubernetes-version=v1.18.15 \
|
--kubernetes-version=v1.18.15 \
|
||||||
--create-args="--networking calico"
|
--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
|
KUBECONFIG=${HOME}/.kube/config
|
||||||
TEST_ARGS="--kubeconfig=${KUBECONFIG}"
|
TEST_ARGS="--kubeconfig=${KUBECONFIG}"
|
||||||
if [[ "${CLOUD_PROVIDER}" == "aws" ]]; then
|
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" \
|
--skip-regex="\[Slow\]|\[Serial\]|\[Disruptive\]|\[Flaky\]|\[Feature:.+\]|\[HPA\]|Dashboard|RuntimeClass|RuntimeHandler|TCP.CLOSE_WAIT|Projected.configMap.optional.updates" \
|
||||||
--test-args="${TEST_ARGS}"
|
--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
|
|
||||||
|
|
Loading…
Reference in New Issue