mirror of
https://github.com/k3s-io/kubernetes.git
synced 2026-01-05 07:27:21 +00:00
remove RESTClient.Timeout
This commit is contained in:
@@ -19,7 +19,6 @@ package unversioned
|
||||
import (
|
||||
"net/url"
|
||||
"strings"
|
||||
"time"
|
||||
|
||||
"k8s.io/kubernetes/pkg/api"
|
||||
"k8s.io/kubernetes/pkg/runtime"
|
||||
@@ -46,10 +45,6 @@ type RESTClient struct {
|
||||
// used.
|
||||
Client HTTPClient
|
||||
|
||||
// Timeout will be converted to a query parameter and be sent with the request to the API
|
||||
// server. The API server will fail the request if it does not finish within timeout.
|
||||
Timeout time.Duration
|
||||
|
||||
// TODO extract this into a wrapper interface via the RESTClient interface in kubectl.
|
||||
Throttle util.RateLimiter
|
||||
}
|
||||
@@ -93,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").
|
||||
|
||||
Reference in New Issue
Block a user