Merge pull request #118399 from skitt/ioutil-sig-api-machinery

api-machinery: stop using deprecated io/ioutil
This commit is contained in:
Kubernetes Prow Robot
2023-08-15 15:17:05 -07:00
committed by GitHub
21 changed files with 48 additions and 58 deletions

View File

@@ -20,7 +20,7 @@ import (
"context"
"crypto/tls"
"encoding/json"
"io/ioutil"
"io"
"net"
"net/http"
"net/http/httptest"
@@ -237,7 +237,7 @@ func TestVersion(t *testing.T) {
func decodeResponse(resp *http.Response, obj interface{}) error {
defer resp.Body.Close()
data, err := ioutil.ReadAll(resp.Body)
data, err := io.ReadAll(resp.Body)
if err != nil {
return err
}