From 0318cd99b088310f444ef74a0477f75a63d003d7 Mon Sep 17 00:00:00 2001
From: Ryan Phillips <ryan.phillips@coreos.com>
Date: Tue, 26 Sep 2017 18:09:40 -0500
Subject: [PATCH] add client request timeout and dialer deadline

---
 storage/kubernetes/client.go | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/storage/kubernetes/client.go b/storage/kubernetes/client.go
index 57c975cf..ef4870d4 100644
--- a/storage/kubernetes/client.go
+++ b/storage/kubernetes/client.go
@@ -333,7 +333,10 @@ func newClient(cluster k8sapi.Cluster, user k8sapi.AuthInfo, namespace string, l
 
 	logger.Infof("kubernetes client apiVersion = %s", apiVersion)
 	return &client{
-		client:     &http.Client{Transport: t},
+		client: &http.Client{
+			Transport: t,
+			Timeout:   15 * time.Second,
+		},
 		baseURL:    cluster.Server,
 		hash:       func() hash.Hash { return fnv.New64() },
 		namespace:  namespace,
-- 
GitLab