mirror of
https://github.com/kubernetes/client-go.git
synced 2025-07-02 01:42:19 +00:00
make kubectl --raw consistent for create, update, get, delete
Kubernetes-commit: 09c55bd1172e9b044762957efeae2c34de145bef
This commit is contained in:
parent
2abfa8322d
commit
4747a4bccd
@ -649,6 +649,9 @@ func (r *Request) Stream() (io.ReadCloser, error) {
|
|||||||
if err != nil {
|
if err != nil {
|
||||||
return nil, err
|
return nil, err
|
||||||
}
|
}
|
||||||
|
if r.body != nil {
|
||||||
|
req.Body = ioutil.NopCloser(r.body)
|
||||||
|
}
|
||||||
if r.ctx != nil {
|
if r.ctx != nil {
|
||||||
req = req.WithContext(r.ctx)
|
req = req.WithContext(r.ctx)
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user