make kubectl --raw consistent for create, update, get, delete

Kubernetes-commit: 09c55bd1172e9b044762957efeae2c34de145bef
This commit is contained in:
David Eads 2019-07-03 08:27:19 -04:00 committed by Kubernetes Publisher
parent 2abfa8322d
commit 4747a4bccd

View File

@ -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)
} }