Skip to content

Migrate away from deprecated ioutil#156

Open
sebrandon1 wants to merge 1 commit intoopenshift:masterfrom
sebrandon1:ioutil_deprecation
Open

Migrate away from deprecated ioutil#156
sebrandon1 wants to merge 1 commit intoopenshift:masterfrom
sebrandon1:ioutil_deprecation

Conversation

@sebrandon1
Copy link
Copy Markdown
Member

ioutil has been deprecated since Go 1.16: https://go.dev/doc/go1.16#ioutil

Tracking issue: redhat-best-practices-for-k8s/telco-bot#52

Migration from ioutil to io/os:

  • Replaced ioutil.ReadAll with io.ReadAll in imagepolicy.go and imagepolicy_test.go for reading configuration data from readers. [1] [2] [3]
  • Replaced ioutil.WriteFile with os.WriteFile in audit.go for writing audit policy files.

Cleanup of deprecated imports:

  • Removed all ioutil import statements from imagepolicy.go, imagepolicy_test.go, and audit.go. [1] [2] [3]

@ibihim
Copy link
Copy Markdown
Contributor

ibihim commented Dec 1, 2025

/lgtm

@openshift-ci openshift-ci bot added the lgtm Indicates that a PR is ready to be merged. label Dec 1, 2025
@openshift-ci
Copy link
Copy Markdown
Contributor

openshift-ci bot commented Dec 1, 2025

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by: ibihim, sebrandon1
Once this PR has been reviewed and has the lgtm label, please assign deads2k for approval. For more information see the Code Review Process.

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

Details Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@openshift-ci openshift-ci bot removed the lgtm Indicates that a PR is ready to be merged. label Jan 16, 2026
@openshift-ci
Copy link
Copy Markdown
Contributor

openshift-ci bot commented Jan 16, 2026

New changes are detected. LGTM label has been removed.

@sebrandon1
Copy link
Copy Markdown
Member Author

/retest

@openshift-ci
Copy link
Copy Markdown
Contributor

openshift-ci bot commented Feb 18, 2026

@sebrandon1: all tests passed!

Full PR test history. Your PR dashboard.

Details

Instructions 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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants