chore(staging/cloud-provider): rm ioutil

This commit is contained in:
Oscar Guertler 2024-08-31 21:43:46 +02:00
parent ed373709d8
commit 36b6a42df1

View File

@ -19,7 +19,6 @@ package testing
import (
"context"
"fmt"
"io/ioutil"
"net"
"os"
"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 {
return result, fmt.Errorf("failed to create temp dir: %v", err)
}