Skip to content

Commit

Permalink
Merge pull request #1748 from allenporter/ioutil
Browse files Browse the repository at this point in the history
Remove use of deprecated io/ioutil
  • Loading branch information
stefanprodan committed Aug 25, 2021
2 parents 6894f6f + e2454d9 commit 375e00c
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions cmd/flux/main_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ import (
"context"
"fmt"
"io"
"io/ioutil"
"os"
"path/filepath"
"strings"
Expand Down Expand Up @@ -132,7 +131,7 @@ func NewTestEnvKubeManager(testClusterMode TestClusterMode) (*testEnvKubeManager
}

tmpFilename := filepath.Join("/tmp", "kubeconfig-"+time.Nanosecond.String())
ioutil.WriteFile(tmpFilename, kubeConfig, 0644)
os.WriteFile(tmpFilename, kubeConfig, 0644)
k8sClient, err := client.NewWithWatch(cfg, client.Options{})
if err != nil {
return nil, err
Expand Down

0 comments on commit 375e00c

Please sign in to comment.