Skip to content

Commit 08f7779

Browse files
committed
Migrate away from deprecated ioutil
1 parent 84c349e commit 08f7779

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,11 +2,11 @@ package framework
22

33
import (
44
"context"
5-
"io/ioutil"
65
apiextv1 "k8s.io/apiextensions-apiserver/pkg/apis/apiextensions/v1"
76
"k8s.io/apimachinery/pkg/runtime"
87
"k8s.io/apimachinery/pkg/runtime/serializer"
98
"k8s.io/client-go/kubernetes/scheme"
9+
"os"
1010
"path/filepath"
1111
"testing"
1212
"time"
@@ -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)