Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
D
dex
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
go
dex
Commits
0aabf2d1
Commit
0aabf2d1
authored
Sep 27, 2017
by
Eric Chiang
Committed by
GitHub
Sep 27, 2017
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #1085 from rphillips/fixes/http_client_timeout
add client request timeout
parents
fe2aee36
0318cd99
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
1 deletion
+4
-1
client.go
storage/kubernetes/client.go
+4
-1
No files found.
storage/kubernetes/client.go
View file @
0aabf2d1
...
@@ -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
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment