Skip to content

Commit

Permalink
tests/kubeadm.go: increase calico wait times to 3min
Browse files Browse the repository at this point in the history
Signed-off-by: Thilo Fromm <thilofromm@microsoft.com>
  • Loading branch information
t-lo committed Oct 25, 2023
1 parent 0244678 commit 60615e2
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions kola/tests/kubeadm/kubeadm.go
Original file line number Diff line number Diff line change
Expand Up @@ -286,8 +286,8 @@ func kubeadmBaseTest(c cluster.TestCluster, params map[string]interface{}) {
}

c.Run("node readiness", func(c cluster.TestCluster) {
// we let some times to the cluster to be fully booted
if err := util.Retry(10, 10*time.Second, func() error {
// Wait up to 3 min (36*5 = 180s) for nginx. The test can be flaky on overcommitted platforms.
if err := util.Retry(36, 5*time.Second, func() error {
// notice the extra space before "Ready", it's to not catch
// "NotReady" nodes
out := c.MustSSH(kubectl, "/opt/bin/kubectl get nodes | grep \" Ready\"| wc -l")
Expand All @@ -307,7 +307,8 @@ func kubeadmBaseTest(c cluster.TestCluster, params map[string]interface{}) {
c.Fatalf("unable to deploy nginx: %v", err)
}

if err := util.Retry(10, 10*time.Second, func() error {
// Wait up to 3 min (36*5 = 180s) for nginx. The test can be flaky on overcommitted platforms.
if err := util.Retry(36, 5*time.Second, func() error {
out := c.MustSSH(kubectl, "/opt/bin/kubectl get deployments -o json | jq '.items | .[] | .status.readyReplicas'")
readyCnt := string(out)
if readyCnt != "1" {
Expand Down

0 comments on commit 60615e2

Please sign in to comment.