diff --git a/perf-tools/framework/config.go b/perf-tools/framework/config.go index fe0f9ab..7109b9c 100644 --- a/perf-tools/framework/config.go +++ b/perf-tools/framework/config.go @@ -20,7 +20,7 @@ package framework import ( "fmt" - "io/ioutil" + "os" apiv1 "k8s.io/api/core/v1" @@ -46,7 +46,7 @@ type CommonConfig struct { } func InitConfig(configFile string) (*Config, error) { - yamlContent, err := ioutil.ReadFile(configFile) + yamlContent, err := os.ReadFile(configFile) if err != nil { return nil, fmt.Errorf("Failed to read config file: %s ", err.Error()) }