Browse Source

add client request timeout and dialer deadline

pull/1085/head
Ryan Phillips 9 years ago
parent
commit
0318cd99b0
  1. 5
      storage/kubernetes/client.go

5
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,

Loading…
Cancel
Save