replace deprecated ioutil (#2531)

* replace deprecated ioutil
* replace ioutil also in kubectl plugin
This commit is contained in:
Felix Kunde
2024-02-05 11:58:36 +01:00
committed by GitHub
parent 8a1b2f4f69
commit bf5db676b1
8 changed files with 22 additions and 23 deletions
+2 -2
View File
@@ -3,7 +3,7 @@ package cluster
import (
"bytes"
"fmt"
"io/ioutil"
"io"
"net/http"
"testing"
"time"
@@ -86,7 +86,7 @@ func TestGetSwitchoverCandidate(t *testing.T) {
for _, tt := range tests {
// mocking cluster members
r := ioutil.NopCloser(bytes.NewReader([]byte(tt.clusterJson)))
r := io.NopCloser(bytes.NewReader([]byte(tt.clusterJson)))
response := http.Response{
StatusCode: 200,