Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 923 for Mounts (0.15 sec)

  1. internal/mountinfo/mountinfo_linux_test.go

    	mountsPath := filepath.Join(dir, "mounts")
    	if err = os.WriteFile(mountsPath, []byte(successCase), 0o666); err != nil {
    		t.Fatal(err)
    	}
    	// Verifies if reading each line worked properly.
    	{
    		var mounts mountInfos
    		mounts, err = readProcMounts(mountsPath)
    		if err != nil {
    			t.Fatal(err)
    		}
    		if len(mounts) != 3 {
    			t.Fatalf("expected 3 mounts, got %d", len(mounts))
    		}
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Thu Jan 18 07:03:17 UTC 2024
    - 7.3K bytes
    - Viewed (0)
  2. internal/mountinfo/mountinfo_linux.go

    			// At this point if the mount point has a common prefix two conditions can happen.
    			// - mount.Path matches exact with `path` means we can proceed no error here.
    			// - mount.Path doesn't match (means cross-device mount), should error out.
    			if mount.Path != path {
    				crossMounts = append(crossMounts, mount)
    			}
    		}
    	}
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Sun Jan 02 17:15:06 UTC 2022
    - 4.7K bytes
    - Viewed (0)
  3. cmd/kubeadm/app/phases/controlplane/volumes.go

    	mounts.AddExtraHostPathMounts(kubeadmconstants.KubeAPIServer, cfg.APIServer.ExtraVolumes)
    	mounts.AddExtraHostPathMounts(kubeadmconstants.KubeControllerManager, cfg.ControllerManager.ExtraVolumes)
    	mounts.AddExtraHostPathMounts(kubeadmconstants.KubeScheduler, cfg.Scheduler.ExtraVolumes)
    
    	return mounts
    }
    
    // controlPlaneHostPathMounts is a helper struct for handling all the control plane's hostPath mounts in an easy way
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Apr 18 09:33:18 UTC 2024
    - 11.3K bytes
    - Viewed (0)
  4. cmd/kubeadm/app/phases/controlplane/volumes_test.go

    		t.Run(rt.name, func(t *testing.T) {
    			mounts := getHostPathVolumesForTheControlPlane(rt.cfg)
    
    			// Avoid unit test errors when the flexvolume is mounted
    			delete(mounts.volumes[kubeadmconstants.KubeControllerManager], flexvolumeDirVolumeName)
    			delete(mounts.volumeMounts[kubeadmconstants.KubeControllerManager], flexvolumeDirVolumeName)
    			if !reflect.DeepEqual(mounts.volumes, rt.vol) {
    				t.Errorf(
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Apr 18 09:33:18 UTC 2024
    - 18.1K bytes
    - Viewed (0)
  5. pkg/kubelet/cm/helpers_linux.go

    		mountPoints[controller] = util.CgroupRoot
    		m := libcontainercgroups.Mount{
    			Mountpoint: util.CgroupRoot,
    			Root:       util.CgroupRoot,
    			Subsystems: []string{controller},
    		}
    		mounts = append(mounts, m)
    	}
    
    	return &CgroupSubsystems{
    		Mounts:      mounts,
    		MountPoints: mountPoints,
    	}, nil
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Jul 14 11:52:28 UTC 2023
    - 9.8K bytes
    - Viewed (0)
  6. cmd/kubeadm/app/cmd/phases/reset/unmount_linux.go

    	raw, err := os.ReadFile("/proc/mounts")
    	if err != nil {
    		return err
    	}
    
    	if !strings.HasSuffix(kubeletRunDirectory, "/") {
    		// trailing "/" is needed to ensure that possibly mounted /var/lib/kubelet is skipped
    		kubeletRunDirectory += "/"
    	}
    
    	var errList []error
    	mounts := strings.Split(string(raw), "\n")
    	flagsInt := flagsToInt(flags)
    	for _, mount := range mounts {
    		m := strings.Split(mount, " ")
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Jan 05 10:58:44 UTC 2024
    - 2.2K bytes
    - Viewed (0)
  7. pkg/volume/util/util_test.go

    			},
    			expected: false,
    		},
    		"extra local mount": {
    			mountPath: "/var/lib/kubelet/plugins/kubernetes.io/some-plugin/mounts/volume-XXXX",
    			mountRefs: []string{
    				"/home/somewhere/var/lib/kubelet/plugins/kubernetes.io/some-plugin/mounts/volume-XXXX",
    				"/local/data/kubernetes.io/some-plugin/mounts/volume-XXXX",
    				"/mnt/kubelet/plugins/kubernetes.io/some-plugin/mounts/volume-XXXX",
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri May 31 12:32:15 UTC 2024
    - 28.7K bytes
    - Viewed (0)
  8. pkg/volume/util/subpath/subpath_linux_test.go

    	testContainer = "container0"
    	testSubpath   = 1
    )
    
    func setupFakeMounter(testMounts []string) *mount.FakeMounter {
    	mounts := []mount.MountPoint{}
    	for _, mountPoint := range testMounts {
    		mounts = append(mounts, mount.MountPoint{Device: "/foo", Path: mountPoint})
    	}
    	return mount.NewFakeMounter(mounts)
    }
    
    func getTestPaths(base string) (string, string) {
    	return filepath.Join(base, testVol),
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Nov 10 16:52:55 UTC 2021
    - 37.3K bytes
    - Viewed (0)
  9. internal/mountinfo/mountinfo.go

    package mountinfo
    
    // mountInfo - This represents a single line in /proc/mounts.
    type mountInfo struct {
    	Device  string
    	Path    string
    	FSType  string
    	Options []string
    	Freq    string
    	Pass    string
    }
    
    func (m mountInfo) String() string {
    	return m.Path
    }
    
    // mountInfos - This represents the entire /proc/mounts.
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Thu Aug 19 01:35:22 UTC 2021
    - 1.1K bytes
    - Viewed (0)
  10. pkg/kubelet/kubelet_pods_linux_test.go

    					t.Fatalf("expected error message `%s` but got `%v`", tc.expectedErrMsg, err)
    				}
    				return
    			}
    
    			// otherwise validate the mounts
    			if err != nil {
    				t.Fatal(err)
    			}
    
    			assert.Equal(t, tc.expectedMounts, mounts, "mounts of container %+v", tc.container)
    		})
    	}
    }
    
    func TestMakeBlockVolumes(t *testing.T) {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat Mar 09 18:00:59 UTC 2024
    - 11.3K bytes
    - Viewed (0)
Back to top