e2e tests: When upgrading, wait for the new configuration

In our upgrade-ab tests, we might be making non-trivial cloud
infrastructure changes, such as waiting for a new load balancer.

Add a `kops validate cluster` step to wait for those changes to be
applied.
This commit is contained in:
justinsb 2024-03-03 10:37:13 -05:00
parent 968fc844f0
commit f9519bc09e
1 changed files with 3 additions and 0 deletions

View File

@ -132,6 +132,9 @@ kubectl get nodes -owide --kubeconfig "${KUBECONFIG_A}"
# Sleep to ensure channels has done its thing
sleep 120s
# Make sure configuration B has been applied (e.g. new load balancer is ready)
"${KOPS_B}" validate cluster --wait=10m
${CHANNELS} apply channel "$KOPS_STATE_STORE"/"${CLUSTER_NAME}"/addons/bootstrap-channel.yaml --yes -v4
"${KOPS_B}" rolling-update cluster