Skip to content

Commit 0b132ed

Browse files
testwillarttor
authored andcommitted
chore: remove refs to deprecated io/ioutil
Signed-off-by: guoguangwu <[email protected]>
1 parent 0b64abb commit 0b132ed

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

pkg/helm/init.go

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

33
import (
44
"fmt"
5-
"io/ioutil"
65
"os"
76
"path/filepath"
87
"regexp"
@@ -178,7 +177,7 @@ func createCommonFiles(chartDir, chartName string, crd bool, certManagerAsSubcha
178177
return
179178
}
180179
file := filepath.Join(path...)
181-
err = ioutil.WriteFile(file, content, 0640)
180+
err = os.WriteFile(file, content, 0640)
182181
if err == nil {
183182
logrus.WithField("file", file).Info("created")
184183
}

0 commit comments

Comments
 (0)