- Sort Score
- Result 10 results
- Languages All
Results 1 - 4 of 4 for setupDirs (0.13 sec)
-
cmd/kubeadm/app/cmd/phases/reset/cleanupnode_test.go
} } func TestConfigDirCleaner(t *testing.T) { tests := map[string]struct { resetDir string setupDirs []string setupFiles []string verifyExists []string verifyNotExists []string }{ "simple reset": { setupDirs: []string{ "manifests", "pki", }, setupFiles: []string{ "manifests/etcd.yaml", "manifests/kube-apiserver.yaml",
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed May 29 06:58:01 UTC 2024 - 5.1K bytes - Viewed (0) -
pkg/volume/emptydir/empty_dir.go
} return fmt.Sprintf("%s=%s", hugePagesPageSizeMountOption, pageSize.String()), nil } // setupDir creates the directory with the default permissions specified by the perm constant. func (ed *emptyDir) setupDir(dir string) error { // Create the directory if it doesn't already exist. if err := os.MkdirAll(dir, perm); err != nil { return err }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue May 21 10:18:16 UTC 2024 - 19K bytes - Viewed (0) -
pkg/volume/git_repo/git_repo_test.go
if !strings.HasSuffix(path, suffix) { allErrs = append(allErrs, fmt.Errorf("got unexpected path: %s", path)) return allErrs } // Test setUp() setUpErrs := doTestSetUp(scenario, mounter) allErrs = append(allErrs, setUpErrs...) if _, err := os.Stat(path); err != nil { if os.IsNotExist(err) { allErrs = append(allErrs, fmt.Errorf("SetUp() failed, volume path not created: %s", path))
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Thu May 02 08:26:26 UTC 2024 - 12K bytes - Viewed (0) -
pkg/volume/emptydir/empty_dir_test.go
mountDetector: &testMountDetector{ pageSize: &resource.Quantity{}, isMnt: false, err: nil, }, }, shouldFail: true, }, "Invalid: setupDir fails": { path: "", ed: &emptyDir{ medium: v1.StorageMediumHugePages, pod: &v1.Pod{ Spec: v1.PodSpec{ Containers: []v1.Container{ {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue May 21 10:18:16 UTC 2024 - 30.7K bytes - Viewed (0)