- Sort Score
- Result 10 results
- Languages All
Results 171 - 180 of 228 for mkdtemp (0.14 sec)
-
pkg/kubelet/certificate/bootstrap/bootstrap_test.go
`) fileboot, err := os.CreateTemp(fileDir, "kubeconfig") if err != nil { t.Fatal(err) } defer fileboot.Close() os.WriteFile(fileboot.Name(), testDatabootstrap, os.FileMode(0755)) dir, err := os.MkdirTemp(fileDir, "k8s-test-certstore-current") if err != nil { t.Fatalf("Unable to create the test directory %q: %v", dir, err) } store, err := certificate.NewFileStore("kubelet-client", dir, dir, "", "")
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue May 09 14:24:11 UTC 2023 - 13K bytes - Viewed (0) -
cmd/kube-scheduler/app/server_test.go
"k8s.io/kubernetes/pkg/scheduler/apis/config/testing/defaults" "k8s.io/kubernetes/pkg/scheduler/framework" ) func TestSetup(t *testing.T) { // temp dir tmpDir, err := os.MkdirTemp("", "scheduler-options") if err != nil { t.Fatal(err) } defer os.RemoveAll(tmpDir) // https server server := httptest.NewTLSServer(http.HandlerFunc(func(w http.ResponseWriter, req *http.Request) {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Apr 24 18:25:29 UTC 2024 - 14.2K bytes - Viewed (0) -
src/cmd/go/internal/vcweb/vcweb.go
panic("vcweb.NewServer: scriptDir is required") } var err error scriptDir, err = filepath.Abs(scriptDir) if err != nil { return nil, err } if workDir == "" { workDir, err = os.MkdirTemp("", "vcweb-*") if err != nil { return nil, err } logger.Printf("vcweb work directory: %s", workDir) } else { workDir, err = filepath.Abs(workDir) if err != nil { return nil, err }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Jun 14 00:03:57 UTC 2023 - 12.1K bytes - Viewed (0) -
src/cmd/dist/util.go
} return names } // xworkdir creates a new temporary directory to hold object files // and returns the name of that directory. func xworkdir() string { name, err := os.MkdirTemp(os.Getenv("GOTMPDIR"), "go-tool-dist-") if err != nil { fatalf("%v", err) } return name } // fatalf prints an error message to standard error and exits.
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Feb 23 17:50:29 UTC 2023 - 11.2K bytes - Viewed (0) -
src/cmd/cgo/internal/testplugin/plugin_test.go
if err != nil { log.Fatal(err) } goroot = filepath.Join(cwd, "../../../../..") // Copy testdata into GOPATH/src/testplugin, along with a go.mod file // declaring the same path. GOPATH, err := os.MkdirTemp("", "plugin_test") if err != nil { log.Panic(err) } defer os.RemoveAll(GOPATH) tmpDir = GOPATH fmt.Printf("TMPDIR=%s\n", tmpDir) modRoot := filepath.Join(GOPATH, "src", "testplugin")
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon May 20 15:32:53 UTC 2024 - 12.3K bytes - Viewed (0) -
pkg/kubelet/cm/cpumanager/cpu_manager_test.go
t.Run(testCase.description, func(t *testing.T) { machineInfo := &mockedMachineInfo if testCase.isTopologyBroken { machineInfo = &cadvisorapi.MachineInfo{} } sDir, err := os.MkdirTemp("", "cpu_manager_test") if err != nil { t.Errorf("cannot create state file: %s", err.Error()) } defer os.RemoveAll(sDir)
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri Oct 06 13:16:15 UTC 2023 - 42.9K bytes - Viewed (0) -
cmd/kubeadm/app/phases/controlplane/volumes_test.go
KeyFile: "/var/lib/etcd/certs/my-etcd.key", }, }, }, vol: volMap2, volMount: volMountMap2, }, } tmpdir, err := os.MkdirTemp("", "") if err != nil { t.Fatalf("Couldn't create tmpdir") } defer os.RemoveAll(tmpdir) // set up tmp caCertsExtraVolumePaths for testing originalCACertsExtraVolumePaths := caCertsExtraVolumePaths
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Thu Apr 18 09:33:18 UTC 2024 - 18.1K bytes - Viewed (0) -
cmd/kube-proxy/app/server_linux_test.go
Spec: v1.NodeSpec{ PodCIDR: cidrs[0], PodCIDRs: cidrs, }, } } func TestConfigChange(t *testing.T) { setUp := func() (*os.File, string, error) { tempDir, err := os.MkdirTemp("", "kubeproxy-config-change") if err != nil { return nil, "", fmt.Errorf("unable to create temporary directory: %v", err) } fullPath := filepath.Join(tempDir, "kube-proxy-config")
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Sun Apr 28 15:51:23 UTC 2024 - 21.9K bytes - Viewed (0) -
pkg/kubelet/prober/worker_test.go
} if result != test.expectedResult { t.Errorf("[%s-%d] Expected result: %v but got %v", probeType, i, test.expectedResult, result) } // Clean up. testRootDir := "" if tempDir, err := os.MkdirTemp("", "kubelet_test."); err != nil { t.Fatalf("can't make a temp rootdir: %v", err) } else { testRootDir = tempDir }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Jun 07 23:48:10 UTC 2023 - 16.1K bytes - Viewed (0) -
cluster/gce/util.sh
# Set up easy-rsa directory structure. # # Assumed vars # KUBE_TEMP # # Vars set: # CERT_DIR # AGGREGATOR_CERT_DIR function setup-easyrsa { local -r cert_create_debug_output=$(mktemp "${KUBE_TEMP}/cert_create_debug_output.XXX") # Note: This was heavily cribbed from make-ca-cert.sh (set -x cd "${KUBE_TEMP}"
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Jun 12 21:47:17 UTC 2024 - 161.6K bytes - Viewed (0)