Merge pull request #118402 from skitt/ioutil-sig-cloud-provider

cloud-provider: stop using deprecated io/ioutil
This commit is contained in:
Kubernetes Prow Robot 2024-10-23 01:17:00 +01:00 committed by GitHub
commit 51313683df
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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)
} }