Skip to content
This repository has been archived by the owner on Mar 28, 2020. It is now read-only.

Commit

Permalink
k8sutil: remove global defaultKubeAPIRequestTimeout (#1936)
Browse files Browse the repository at this point in the history
The watch stream in informer will break after 30s.
  • Loading branch information
hongchaodeng committed Mar 6, 2018
1 parent bd49871 commit 8726b1a
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions pkg/util/k8sutil/k8sutil.go
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down Expand Up @@ -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
}

Expand Down

0 comments on commit 8726b1a

Please sign in to comment.