Migrate away from deprecated ioutil#422
Conversation
|
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: sebrandon1 The full list of commands accepted by this bot can be found here. DetailsNeeds approval from an approver in each of these files:Approvers can indicate their approval by writing |
|
@sebrandon1: all tests passed! 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. |
ioutilhas been deprecated since Go 1.16: https://go.dev/doc/go1.16#ioutilTracking issue: redhat-best-practices-for-k8s/telco-bot#52
Migration away from
ioutil:ioutil.TempFilewithos.CreateTempfor creating temporary files inbuild_controller_test.go.ioutil.NopClosertoio.NopCloserandioutil.ReadAlltoio.ReadAllinimagestream_controller_test.goandtemplateinstance_controller_test.go. [1] [2] [3]Cleanup of imports:
ioutilimports and addediowhere necessary in test files. [1] [2] [3]