Skip to content

Commit eccb67f

Browse files
committed
Migrate away from deprecated ioutil
1 parent 12b7668 commit eccb67f

File tree

1 file changed

+2
-2
lines changed
  • pkg/operator/configobservation

1 file changed

+2
-2
lines changed

pkg/operator/configobservation/util.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import (
44
"bytes"
55
"encoding/json"
66
"fmt"
7-
"io/ioutil"
7+
"io"
88
"strings"
99

1010
"k8s.io/apimachinery/pkg/apis/meta/v1/unstructured"
@@ -74,7 +74,7 @@ func ConvertJSON(o interface{}) (interface{}, error) {
7474
return nil, err
7575
}
7676

77-
jsonEncoded, err := ioutil.ReadAll(buf)
77+
jsonEncoded, err := io.ReadAll(buf)
7878
if err != nil {
7979
return nil, err
8080
}

0 commit comments

Comments
 (0)