From f5d03af46a2a67d40cb0367cd677abfb5454b595 Mon Sep 17 00:00:00 2001 From: Wei Fu Date: Sat, 11 May 2024 06:36:13 +0000 Subject: [PATCH] contrib/internal: increase timeout for teardown When apiserver was rolling update or kwok has been throttled by apiserver, we increase timeout for teardown. Signed-off-by: Wei Fu --- contrib/internal/utils/utils.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/contrib/internal/utils/utils.go b/contrib/internal/utils/utils.go index 1ae7d43..2f530fa 100644 --- a/contrib/internal/utils/utils.go +++ b/contrib/internal/utils/utils.go @@ -72,7 +72,7 @@ func RepeatJobWith3KPod(ctx context.Context, kubeCfgPath string, namespace strin defer func() { klog.V(0).Infof("Cleanup namespace %s", namespace) - err := kr.DeleteNamespace(context.TODO(), 5*time.Minute, namespace) + err := kr.DeleteNamespace(context.TODO(), 60*time.Minute, namespace) if err != nil { klog.V(0).ErrorS(err, "failed to cleanup", "namespace", namespace) }