Migrate away from deprecated ioutil#295
Conversation
|
@sebrandon1: The following tests failed, say
Full PR test history. Your PR dashboard. DetailsInstructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. I understand the commands that are listed here. |
|
Issues go stale after 90d of inactivity. Mark the issue as fresh by commenting If this issue is safe to close now please do so with /lifecycle stale |
|
/lgtm |
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: cfergeau The full list of commands accepted by this bot can be found here. The pull request process is described here DetailsNeeds approval from an approver in each of these files:
Approvers can indicate their approval by writing |
ioutilhas been deprecated since Go 1.16: https://go.dev/doc/go1.16#ioutilTracking issue: redhat-best-practices-for-k8s/telco-bot#52
Migration from deprecated
ioutilfunctions:ioutil.TempDirwithos.MkdirTempandioutil.WriteFilewithos.WriteFilein thecreateFilesmethod ofcloudinit.goto create temporary directories and write files. [1] [2]ioutil.TempFilewithos.CreateTempin thecreateFilemethod ofignition.gofor creating temporary files. [1] [2]