From 2f05a4856d186e785228f9a36630c19b54197eda Mon Sep 17 00:00:00 2001 From: Evans Mungai Date: Tue, 19 Sep 2023 14:25:25 +0100 Subject: [PATCH] Remove deprecated ioutil.ReadFile --- pkg/kotsutil/troubleshoot.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/pkg/kotsutil/troubleshoot.go b/pkg/kotsutil/troubleshoot.go index 9f93a4d8a8..67a4d08fc8 100644 --- a/pkg/kotsutil/troubleshoot.go +++ b/pkg/kotsutil/troubleshoot.go @@ -2,7 +2,6 @@ package kotsutil import ( "context" - "io/ioutil" "os" "path/filepath" @@ -22,7 +21,7 @@ func LoadTSKindsFromPath(dir string) (*troubleshootloader.TroubleshootKinds, err return nil } - contents, err := ioutil.ReadFile(path) + contents, err := os.ReadFile(path) if err != nil { return errors.Wrap(err, "failed to read file") }