Skip to content

Conversation

@sebrandon1
Copy link
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

Core updates to file and stream reading:

  • Replaced ioutil.ReadAll with io.ReadAll for reading from streams and HTTP response bodies across authentication, OAuth, and server-related packages. [1] [2] [3] [4] [5] [6] [7]
  • Replaced ioutil.ReadFile with os.ReadFile for reading files in configuration and OAuth server logic, such as loading secrets and certificates. [1] [2] [3] [4] [5]

Test code modernization:

  • Updated tests to use os.CreateTemp instead of ioutil.TempFile and os.WriteFile instead of ioutil.WriteFile for creating and writing temporary files. [1] [2] [3] [4] [5]
  • Updated imports and usage in test files to use io.ReadAll instead of ioutil.ReadAll for reading HTTP response bodies. [1] [2] [3] [4]

General import cleanup:

These updates ensure the codebase is up-to-date with the latest Go standards and removes reliance on deprecated APIs.

@openshift-ci
Copy link
Contributor

openshift-ci bot commented Nov 25, 2025

@sebrandon1: all tests passed!

Full PR test history. Your PR dashboard.

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.

@ibihim
Copy link
Contributor

ibihim commented Dec 1, 2025

/approve

@openshift-ci openshift-ci bot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Dec 1, 2025
@liouk
Copy link
Member

liouk 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
Contributor

openshift-ci bot commented Dec 1, 2025

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: ibihim, liouk, sebrandon1

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:

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

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

Labels

approved Indicates a PR has been approved by an approver from all required OWNERS files. lgtm Indicates that a PR is ready to be merged.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants