kubernetes-sigs / kubebuilder-declarative-pattern

A toolkit for building declarative operators with kubebuilder
Apache License 2.0
254 stars 84 forks source link

Replace deprecated funcs on ioutil package #282

Closed atoato88 closed 1 year ago

atoato88 commented 1 year ago

What this PR does / why we need it: As of Go 1.16, funcs related to operate files and directories in the ioutil pakage are deprecated. This PR replaces deprecated funcs on ioutil by using io and os packages.

/kind cleanup

Which issue(s) this PR fixes: NONE

Special notes for your reviewer: NONE

Additional documentation: NONE

justinsb commented 1 year ago

Thanks for addressing this @atoato88

/approve /lgtm

k8s-ci-robot commented 1 year ago

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: atoato88, justinsb

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files: - ~~[OWNERS](https://github.com/kubernetes-sigs/kubebuilder-declarative-pattern/blob/master/OWNERS)~~ [atoato88,justinsb] Approvers can indicate their approval by writing `/approve` in a comment Approvers can cancel approval by writing `/approve cancel` in a comment