mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-03 17:30:00 +00:00
Merge pull request #118402 from skitt/ioutil-sig-cloud-provider
cloud-provider: stop using deprecated io/ioutil
This commit is contained in:
commit
51313683df
@ -19,7 +19,6 @@ package testing
|
|||||||
import (
|
import (
|
||||||
"context"
|
"context"
|
||||||
"fmt"
|
"fmt"
|
||||||
"io/ioutil"
|
|
||||||
"net"
|
"net"
|
||||||
"os"
|
"os"
|
||||||
"strings"
|
"strings"
|
||||||
@ -99,7 +98,7 @@ func StartTestServer(ctx context.Context, customFlags []string) (result TestServ
|
|||||||
}
|
}
|
||||||
}()
|
}()
|
||||||
|
|
||||||
result.TmpDir, err = ioutil.TempDir("", "cloud-controller-manager")
|
result.TmpDir, err = os.MkdirTemp("", "cloud-controller-manager")
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return result, fmt.Errorf("failed to create temp dir: %v", err)
|
return result, fmt.Errorf("failed to create temp dir: %v", err)
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user