Skip to content

Commit

Permalink
Replace ioutil.ReadFile with os.ReadFile
Browse files Browse the repository at this point in the history
  • Loading branch information
shafeeqes committed Feb 7, 2023
1 parent 7cfa441 commit 61dda8b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pkg/apis/config/loader/loader.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
package loader

import (
"io/ioutil"
"os"

"k8s.io/apimachinery/pkg/runtime"
"k8s.io/apimachinery/pkg/runtime/schema"
Expand Down Expand Up @@ -46,7 +46,7 @@ func init() {

// LoadFromFile takes a filename and de-serializes the contents into ControllerConfiguration object.
func LoadFromFile(filename string) (*config.ControllerConfiguration, error) {
bytes, err := ioutil.ReadFile(filename)
bytes, err := os.ReadFile(filename)
if err != nil {
return nil, err
}
Expand Down

0 comments on commit 61dda8b

Please sign in to comment.