Skip to content

Commit

Permalink
e2e tests: When upgrading, wait for the new configuration
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
justinsb committed Mar 3, 2024
1 parent 968fc84 commit f9519bc
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions tests/e2e/scenarios/upgrade-ab/run-test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit f9519bc

Please sign in to comment.