Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
K
k3s
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
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Jacklull
k3s
Commits
d71a667a
Commit
d71a667a
authored
Nov 07, 2015
by
k8s-merge-robot
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #16821 from caesarxuchao/restclient-timeout
Auto commit by PR queue bot
parents
5988f73a
ac0b7b5d
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
1 addition
and
11 deletions
+1
-11
hollow-node.go
cmd/kubemark/hollow-node.go
+0
-4
restclient.go
pkg/client/unversioned/restclient.go
+1
-4
util.go
test/e2e/util.go
+0
-3
No files found.
cmd/kubemark/hollow-node.go
View file @
d71a667a
...
...
@@ -19,7 +19,6 @@ package main
import
(
"fmt"
"runtime"
"time"
docker
"github.com/fsouza/go-dockerclient"
...
...
@@ -72,9 +71,6 @@ func createClientFromFile(path string) (*client.Client, error) {
if
err
!=
nil
{
return
nil
,
fmt
.
Errorf
(
"error while creating client: %v"
,
err
)
}
if
client
.
Timeout
==
0
{
client
.
Timeout
=
30
*
time
.
Second
}
return
client
,
nil
}
...
...
pkg/client/unversioned/restclient.go
View file @
d71a667a
...
...
@@ -19,7 +19,6 @@ package unversioned
import
(
"net/url"
"strings"
"time"
"k8s.io/kubernetes/pkg/api"
"k8s.io/kubernetes/pkg/runtime"
...
...
@@ -46,8 +45,6 @@ type RESTClient struct {
// used.
Client
HTTPClient
Timeout
time
.
Duration
// TODO extract this into a wrapper interface via the RESTClient interface in kubectl.
Throttle
util
.
RateLimiter
}
...
...
@@ -91,7 +88,7 @@ func (c *RESTClient) Verb(verb string) *Request {
if
c
.
Throttle
!=
nil
{
c
.
Throttle
.
Accept
()
}
return
NewRequest
(
c
.
Client
,
verb
,
c
.
baseURL
,
c
.
apiVersion
,
c
.
Codec
)
.
Timeout
(
c
.
Timeout
)
return
NewRequest
(
c
.
Client
,
verb
,
c
.
baseURL
,
c
.
apiVersion
,
c
.
Codec
)
}
// Post begins a POST request. Short for c.Verb("POST").
...
...
test/e2e/util.go
View file @
d71a667a
...
...
@@ -894,9 +894,6 @@ func loadClient() (*client.Client, error) {
if
err
!=
nil
{
return
nil
,
fmt
.
Errorf
(
"error creating client: %v"
,
err
.
Error
())
}
if
c
.
Timeout
==
0
{
c
.
Timeout
=
singleCallTimeout
}
return
c
,
nil
}
...
...
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