mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-09-19 00:19:14 +00:00
Do not use namespace in url paths pre v1beta3 from client
This commit is contained in:
@@ -96,16 +96,16 @@ type FakeRESTClient struct {
|
||||
}
|
||||
|
||||
func (c *FakeRESTClient) Get() *Request {
|
||||
return NewRequest(c, "GET", &url.URL{Host: "localhost"}, c.Codec)
|
||||
return NewRequest(c, "GET", &url.URL{Host: "localhost"}, c.Codec, true)
|
||||
}
|
||||
func (c *FakeRESTClient) Put() *Request {
|
||||
return NewRequest(c, "PUT", &url.URL{Host: "localhost"}, c.Codec)
|
||||
return NewRequest(c, "PUT", &url.URL{Host: "localhost"}, c.Codec, true)
|
||||
}
|
||||
func (c *FakeRESTClient) Post() *Request {
|
||||
return NewRequest(c, "POST", &url.URL{Host: "localhost"}, c.Codec)
|
||||
return NewRequest(c, "POST", &url.URL{Host: "localhost"}, c.Codec, true)
|
||||
}
|
||||
func (c *FakeRESTClient) Delete() *Request {
|
||||
return NewRequest(c, "DELETE", &url.URL{Host: "localhost"}, c.Codec)
|
||||
return NewRequest(c, "DELETE", &url.URL{Host: "localhost"}, c.Codec, true)
|
||||
}
|
||||
func (c *FakeRESTClient) Do(req *http.Request) (*http.Response, error) {
|
||||
c.Req = req
|
||||
|
Reference in New Issue
Block a user