mirror of
https://github.com/fluxcd/flux2.git
synced 2026-02-25 09:01:48 +00:00
Merge pull request #1748 from allenporter/ioutil
Remove use of deprecated io/ioutil
This commit is contained in:
commit
375e00c79c
1 changed files with 1 additions and 2 deletions
|
|
@ -6,7 +6,6 @@ import (
|
||||||
"context"
|
"context"
|
||||||
"fmt"
|
"fmt"
|
||||||
"io"
|
"io"
|
||||||
"io/ioutil"
|
|
||||||
"os"
|
"os"
|
||||||
"path/filepath"
|
"path/filepath"
|
||||||
"strings"
|
"strings"
|
||||||
|
|
@ -132,7 +131,7 @@ func NewTestEnvKubeManager(testClusterMode TestClusterMode) (*testEnvKubeManager
|
||||||
}
|
}
|
||||||
|
|
||||||
tmpFilename := filepath.Join("/tmp", "kubeconfig-"+time.Nanosecond.String())
|
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{})
|
k8sClient, err := client.NewWithWatch(cfg, client.Options{})
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return nil, err
|
return nil, err
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue