Skip to content
Snippets Groups Projects
Commit 0318cd99 authored by Ryan Phillips's avatar Ryan Phillips
Browse files

add client request timeout and dialer deadline

parent 904c3fac
No related branches found
No related tags found
No related merge requests found
...@@ -333,7 +333,10 @@ func newClient(cluster k8sapi.Cluster, user k8sapi.AuthInfo, namespace string, l ...@@ -333,7 +333,10 @@ func newClient(cluster k8sapi.Cluster, user k8sapi.AuthInfo, namespace string, l
logger.Infof("kubernetes client apiVersion = %s", apiVersion) logger.Infof("kubernetes client apiVersion = %s", apiVersion)
return &client{ return &client{
client: &http.Client{Transport: t}, client: &http.Client{
Transport: t,
Timeout: 15 * time.Second,
},
baseURL: cluster.Server, baseURL: cluster.Server,
hash: func() hash.Hash { return fnv.New64() }, hash: func() hash.Hash { return fnv.New64() },
namespace: namespace, namespace: namespace,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment