Skip to content

Commit e520da5

Browse files
committed
update deprecated lib
1 parent eed3faa commit e520da5

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

controllers/bootstrapcontroller.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@ package controllers
22

33
import (
44
"K8SArdoqBridge/app/lib/metrics"
5-
"io/ioutil"
65
"os"
76
"strconv"
87
"strings"
@@ -59,7 +58,7 @@ func BootstrapModel() error {
5958
return nil
6059
}
6160
func BootstrapFields() error {
62-
yamlFile, err := ioutil.ReadFile("bootstrap_fields.yaml")
61+
yamlFile, err := os.ReadFile("bootstrap_fields.yaml")
6362
if err != nil {
6463
log.Errorf("yamlFile.Get err #%v ", err)
6564
return err

0 commit comments

Comments
 (0)