Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for generatePodSandboxConfig (0.26 sec)

  1. pkg/kubelet/kuberuntime/kuberuntime_sandbox.go

    		klog.ErrorS(err, "Failed to create sandbox for pod", "pod", klog.KObj(pod))
    		return "", message, err
    	}
    
    	return podSandBoxID, "", nil
    }
    
    // generatePodSandboxConfig generates pod sandbox config from v1.Pod.
    func (m *kubeGenericRuntimeManager) generatePodSandboxConfig(pod *v1.Pod, attempt uint32) (*runtimeapi.PodSandboxConfig, error) {
    	// TODO: deprecating podsandbox resource requirements in favor of the pod level cgroup
    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/kuberuntime/kuberuntime_sandbox_test.go

    		Namespace: pod.Namespace,
    		Uid:       string(pod.UID),
    		Attempt:   uint32(1),
    	}
    	expectedPortMappings := []*runtimeapi.PortMapping{
    		{
    			HostPort: 8080,
    		},
    	}
    
    	podSandboxConfig, err := m.generatePodSandboxConfig(pod, 1)
    	assert.NoError(t, err)
    	assert.Equal(t, expectedLabels, podSandboxConfig.Labels)
    	assert.Equal(t, expectedLogDirectory, podSandboxConfig.LogDirectory)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 24 18:25:29 UTC 2024
    - 14.3K bytes
    - Viewed (0)
  3. pkg/kubelet/kuberuntime/kuberuntime_container_test.go

    		ctx := context.Background()
    		// Fake all the things you need before trying to create a container
    		fakeSandBox, _ := makeAndSetFakePod(t, m, fakeRuntime, testPod)
    		fakeSandBoxConfig, _ := m.generatePodSandboxConfig(testPod, 0)
    		testContainer.Lifecycle = cmdPostStart
    		fakePodStatus := &kubecontainer.PodStatus{
    			ContainerStatuses: []*kubecontainer.Status{
    				{
    					ID: kubecontainer.ContainerID{
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed May 29 22:40:29 UTC 2024
    - 28K bytes
    - Viewed (0)
Back to top