refactor
Kubernetes-commit: d55d6175f8e2cfdab0b79aac72046a652c2eb515
This commit is contained in:
parent
febbd3def6
commit
5252eb1dd9
|
@ -18,6 +18,7 @@ package rawhttp
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"bytes"
|
"bytes"
|
||||||
|
"context"
|
||||||
"fmt"
|
"fmt"
|
||||||
"io"
|
"io"
|
||||||
"io/ioutil"
|
"io/ioutil"
|
||||||
|
@ -80,7 +81,7 @@ func raw(restClient *rest.RESTClient, streams genericclioptions.IOStreams, url,
|
||||||
return fmt.Errorf("unknown requestType: %q", requestType)
|
return fmt.Errorf("unknown requestType: %q", requestType)
|
||||||
}
|
}
|
||||||
|
|
||||||
stream, err := request.Stream()
|
stream, err := request.Stream(context.TODO())
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue