Skip to content

Commit

Permalink
chore: remove refs to deprecated io/ioutil
Browse files Browse the repository at this point in the history
Signed-off-by: guoguangwu <guoguangwu@magic-shield.com>
  • Loading branch information
testwill authored and arttor committed Nov 17, 2023
1 parent 0b64abb commit 0b132ed
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions pkg/helm/init.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ package helm

import (
"fmt"
"io/ioutil"
"os"
"path/filepath"
"regexp"
Expand Down Expand Up @@ -178,7 +177,7 @@ func createCommonFiles(chartDir, chartName string, crd bool, certManagerAsSubcha
return
}
file := filepath.Join(path...)
err = ioutil.WriteFile(file, content, 0640)
err = os.WriteFile(file, content, 0640)
if err == nil {
logrus.WithField("file", file).Info("created")
}
Expand Down

0 comments on commit 0b132ed

Please sign in to comment.