From 8726b1ac97a1e6abbd7fb24f4a5fcf101f09fe42 Mon Sep 17 00:00:00 2001 From: Hongchao Deng Date: Tue, 6 Mar 2018 12:51:49 -0800 Subject: [PATCH] k8sutil: remove global defaultKubeAPIRequestTimeout (#1936) The watch stream in informer will break after 30s. --- pkg/util/k8sutil/k8sutil.go | 4 ---- 1 file changed, 4 deletions(-) diff --git a/pkg/util/k8sutil/k8sutil.go b/pkg/util/k8sutil/k8sutil.go index 6a93665d0..84dba2577 100644 --- a/pkg/util/k8sutil/k8sutil.go +++ b/pkg/util/k8sutil/k8sutil.go @@ -61,8 +61,6 @@ const ( // k8s object name has a maximum length maxNameLength = 63 - randomSuffixLength - 1 - defaultKubeAPIRequestTimeout = 30 * time.Second - defaultBusyboxImage = "busybox:1.28.0-glibc" // AnnotationScope annotation name for defining instance scope. Used for specifing cluster wide clusters. @@ -428,8 +426,6 @@ func InClusterConfig() (*rest.Config, error) { if err != nil { return nil, err } - // Set a reasonable default request timeout - cfg.Timeout = defaultKubeAPIRequestTimeout return cfg, nil }