mirror of
https://github.com/openshift/installer.git
synced 2026-02-05 15:47:14 +01:00
`io/ioutil` has been deprecated since go-1.16 [1]. We should use `io` and `os` instead. [1] https://github.com/golang/go/issues/42026
15 lines
243 B
Go
15 lines
243 B
Go
package explain
|
|
|
|
import (
|
|
"os"
|
|
"testing"
|
|
)
|
|
|
|
func loadCRD(t *testing.T) []byte {
|
|
crd, err := os.ReadFile("../../data/data/install.openshift.io_installconfigs.yaml")
|
|
if err != nil {
|
|
t.Fatalf("failed to load CRD: %v", err)
|
|
}
|
|
return crd
|
|
}
|