Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 589 for Mounts (0.1 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. 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)
  3. 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)
  4. 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)
  5. 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)
  6. 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)
  7. 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)
  8. pkg/kubelet/kubelet_pods_windows_test.go

    			ContainerPath:  `C:\Windows\System32\drivers\etc\hosts`,
    			HostPath:       filepath.Join(podDir, "etc-hosts"),
    			ReadOnly:       false,
    			SELinuxRelabel: true,
    		},
    	}
    	assert.Equal(t, expectedMounts, mounts, "mounts of container %+v", container)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Apr 25 14:24:16 UTC 2024
    - 4.1K bytes
    - Viewed (0)
  9. cmd/kubeadm/app/phases/controlplane/manifests.go

    func GetStaticPodSpecs(cfg *kubeadmapi.ClusterConfiguration, endpoint *kubeadmapi.APIEndpoint, proxyEnvs []kubeadmapi.EnvVar) map[string]v1.Pod {
    	// Get the required hostpath mounts
    	mounts := getHostPathVolumesForTheControlPlane(cfg)
    	if proxyEnvs == nil {
    		proxyEnvs = kubeadmutil.GetProxyEnvVars()
    	}
    	componentHealthCheckTimeout := kubeadmapi.GetActiveTimeouts().ControlPlaneComponentHealthCheck
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sun Mar 03 14:43:47 UTC 2024
    - 17.8K bytes
    - Viewed (0)
  10. cni/pkg/constants/constants.go

    )
    
    // Exposed for testing "constants"
    var (
    	CNIBinDir     = "/opt/cni/bin"
    	HostCNIBinDir = "/host/opt/cni/bin"
    	// Well-known subpath we will mount any needed host-mounts under,
    	// to preclude shadowing or breaking any pod-internal mounts
    	HostMountsPath = "/host"
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue May 21 18:32:01 UTC 2024
    - 2.8K bytes
    - Viewed (0)
Back to top