Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 4 of 4 for HasWindowsHostProcessContainer (0.22 sec)

  1. pkg/kubelet/kuberuntime/kuberuntime_sandbox.go

    	// If all of the containers in a pod are HostProcess containers, set the pod's HostProcess field
    	// explicitly because the container runtime requires this information at sandbox creation time.
    	if kubecontainer.HasWindowsHostProcessContainer(pod) {
    		// At present Windows all containers in a Windows pod must be HostProcess containers
    		// and HostNetwork is required to be set.
    		if !kubecontainer.AllContainersAreWindowsHostProcess(pod) {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed May 29 22:40:29 UTC 2024
    - 13.6K bytes
    - Viewed (0)
  2. pkg/kubelet/container/helpers.go

    			hasPrivileged = true
    			return false
    		}
    		return true
    	})
    	return hasPrivileged
    }
    
    // HasWindowsHostProcessContainer returns true if any of the containers in a pod are HostProcess containers.
    func HasWindowsHostProcessContainer(pod *v1.Pod) bool {
    	var hasHostProcess bool
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Jun 04 06:25:43 UTC 2024
    - 14.3K bytes
    - Viewed (0)
  3. pkg/kubelet/container/helpers_test.go

    			},
    			expectedResult: true,
    		},
    	}
    
    	for _, testCase := range testCases {
    		t.Run(testCase.name, func(t *testing.T) {
    			pod := &v1.Pod{}
    			pod.Spec = *testCase.podSpec
    			result := HasWindowsHostProcessContainer(pod)
    			assert.Equal(t, result, testCase.expectedResult)
    		})
    	}
    }
    
    func TestHashContainerWithoutResources(t *testing.T) {
    	cpu100m := resource.MustParse("100m")
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed May 22 01:55:46 UTC 2024
    - 24.5K bytes
    - Viewed (0)
  4. pkg/kubelet/kubelet_pods.go

    // - Windows pod contains a hostProcess container
    func shouldMountHostsFile(pod *v1.Pod, podIPs []string) bool {
    	shouldMount := len(podIPs) > 0
    	if runtime.GOOS == "windows" {
    		return shouldMount && !kubecontainer.HasWindowsHostProcessContainer(pod)
    	}
    	return shouldMount
    }
    
    // makeMounts determines the mount points for the given container.
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Jun 14 16:09:17 UTC 2024
    - 101.2K bytes
    - Viewed (0)
Back to top