Skip to content

Commit 575b46a

Browse files
committed
Migrate away from deprecated ioutil
1 parent 84c349e commit 575b46a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/e2e/framework/helpers.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ package framework
22

33
import (
44
"context"
5-
"io/ioutil"
5+
"os"
66
apiextv1 "k8s.io/apiextensions-apiserver/pkg/apis/apiextensions/v1"
77
"k8s.io/apimachinery/pkg/runtime"
88
"k8s.io/apimachinery/pkg/runtime/serializer"
@@ -80,7 +80,7 @@ func (f *Framework) buildConfigMap(o metav1.ObjectMeta, config string) (*v1.Conf
8080
// ReadManifest reads a manifest from the provided path.
8181
func (f *Framework) ReadManifest(manifestPath string) ([]byte, error) {
8282
manifestPath = filepath.Clean(manifestPath)
83-
return ioutil.ReadFile(manifestPath)
83+
return os.ReadFile(manifestPath)
8484
}
8585

8686
// BuildCRD builds a CRD from the provided manifest.

0 commit comments

Comments
 (0)