From 855269fe111c904fa3176dcc3e7071d68037d193 Mon Sep 17 00:00:00 2001 From: brandboat Date: Thu, 26 Oct 2023 22:05:38 +0800 Subject: [PATCH] [YUNIKORN-2076] Remove deprecared io/ioutil --- perf-tools/framework/config.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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()) }