Skip to content

Commit

Permalink
fix: Remove usage of deprecated ioutil pkg
Browse files Browse the repository at this point in the history
  • Loading branch information
akhy committed Nov 1, 2023
1 parent d9d919f commit bcda3b3
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions kubeconfig.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ package main

import (
"fmt"
"io/ioutil"
"os"
"path/filepath"

Expand Down Expand Up @@ -84,7 +83,7 @@ func generateKubeconfig(sourcePath string, contextName string) ([]byte, error) {
}

func listContexts(path string) ([]string, error) {
sourceBytes, err := ioutil.ReadFile(path)
sourceBytes, err := os.ReadFile(path)
if err != nil {
return nil, err
}
Expand Down

0 comments on commit bcda3b3

Please sign in to comment.