Skip to content

Commit

Permalink
[connectivity] Retry deleting namespace while waiting
Browse files Browse the repository at this point in the history
Signed-off-by: Jared Ledvina <jared.ledvina@datadoghq.com>
  • Loading branch information
jaredledvina committed Jul 15, 2022
1 parent cf899e2 commit 62debdd
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions connectivity/check/deployment.go
Original file line number Diff line number Diff line change
Expand Up @@ -650,6 +650,7 @@ func (ct *ConnectivityTest) deleteDeployments(ctx context.Context, client *k8s.C
ct.Logf("⌛ [%s] Waiting for namespace %s to disappear", client.ClusterName(), ct.params.TestNamespace)
for err == nil {
time.Sleep(time.Second)
_ = client.DeleteNamespace(ctx, ct.params.TestNamespace, metav1.DeleteOptions{})
_, err = client.GetNamespace(ctx, ct.params.TestNamespace, metav1.GetOptions{})
}
}
Expand Down

0 comments on commit 62debdd

Please sign in to comment.