Skip to content

Commit

Permalink
Merge pull request #118402 from skitt/ioutil-sig-cloud-provider
Browse files Browse the repository at this point in the history
cloud-provider: stop using deprecated io/ioutil

Kubernetes-commit: 51313683df514a3941acfcde0ec7f08d10589f74
  • Loading branch information
k8s-publishing-bot committed Oct 23, 2024
2 parents 429e677 + 8d27b72 commit 396e4b2
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions app/testing/testserver.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ package testing
import (
"context"
"fmt"
"io/ioutil"
"net"
"os"
"strings"
Expand Down Expand Up @@ -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)
}
Expand Down

0 comments on commit 396e4b2

Please sign in to comment.