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

k8sutil: remove global defaultKubeAPIRequestTimeout #1936

Merged
merged 1 commit into from
Mar 6, 2018
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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