mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-19 16:49:35 +00:00
Merge pull request #118391 from testwill/downwardapi
chore: io/ioutil deprecated
This commit is contained in:
commit
7a8aa1b533
@ -18,7 +18,6 @@ package downwardapi
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
"io/ioutil"
|
||||
"os"
|
||||
"path/filepath"
|
||||
"runtime"
|
||||
@ -320,7 +319,7 @@ type stepName struct {
|
||||
func (step stepName) getName() string { return step.name }
|
||||
|
||||
func doVerifyLinesInFile(t *testing.T, volumePath, filename string, expected string) {
|
||||
data, err := ioutil.ReadFile(filepath.Join(volumePath, filename))
|
||||
data, err := os.ReadFile(filepath.Join(volumePath, filename))
|
||||
if err != nil {
|
||||
t.Errorf(err.Error())
|
||||
return
|
||||
|
Loading…
Reference in New Issue
Block a user