mirror of
https://github.com/optim-enterprises-bv/kubernetes.git
synced 2025-11-29 21:03:56 +00:00
replace ioutil with io and os for cluster/images/etcd;
bump the REVISION in Makefile to 5
This commit is contained in:
@@ -17,7 +17,6 @@ limitations under the License.
|
||||
package main
|
||||
|
||||
import (
|
||||
"io/ioutil"
|
||||
"os"
|
||||
"path/filepath"
|
||||
"testing"
|
||||
@@ -156,7 +155,7 @@ func TestBackup(t *testing.T) {
|
||||
}
|
||||
|
||||
func newTestPath(t *testing.T) string {
|
||||
path, err := ioutil.TempDir("", "etcd-migrate-test-")
|
||||
path, err := os.MkdirTemp("", "etcd-migrate-test-")
|
||||
if err != nil {
|
||||
t.Fatalf("Failed to create tmp dir for test: %v", err)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user