Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 30 for CONTAINERID (0.17 sec)

  1. pkg/kubelet/container/helpers.go

    	"k8s.io/kubernetes/third_party/forked/golang/expansion"
    	utilsnet "k8s.io/utils/net"
    )
    
    // HandlerRunner runs a lifecycle handler for a container.
    type HandlerRunner interface {
    	Run(ctx context.Context, containerID ContainerID, pod *v1.Pod, container *v1.Container, handler *v1.LifecycleHandler) (string, error)
    }
    
    // RuntimeHelper wraps kubelet to make container runtime
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Jun 04 06:25:43 UTC 2024
    - 14.3K bytes
    - Viewed (0)
  2. pkg/kubelet/kuberuntime/helpers_test.go

    		State:    runtimeapi.ContainerState_CONTAINER_RUNNING,
    		Annotations: map[string]string{
    			containerHashLabel: "1234",
    		},
    	}
    	expect := &kubecontainer.Container{
    		ID: kubecontainer.ContainerID{
    			Type: runtimetesting.FakeRuntimeName,
    			ID:   "test-id",
    		},
    		Name:                "test-name",
    		ImageID:             "test-image-id",
    		ImageRef:            "test-image-ref",
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 24 18:25:29 UTC 2024
    - 11.7K bytes
    - Viewed (0)
  3. pkg/kubelet/kuberuntime/helpers.go

    	imageID := c.ImageRef
    	if c.ImageId != "" {
    		imageID = c.ImageId
    	}
    
    	annotatedInfo := getContainerInfoFromAnnotations(c.Annotations)
    	return &kubecontainer.Container{
    		ID:                  kubecontainer.ContainerID{Type: m.runtimeName, ID: c.Id},
    		Name:                c.GetMetadata().GetName(),
    		ImageID:             imageID,
    		ImageRef:            c.ImageRef,
    		ImageRuntimeHandler: c.Image.RuntimeHandler,
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed May 22 02:01:31 UTC 2024
    - 12K bytes
    - Viewed (0)
  4. pkg/kubelet/kuberuntime/kuberuntime_container_linux.go

    func (m *kubeGenericRuntimeManager) applyPlatformSpecificContainerConfig(config *runtimeapi.ContainerConfig, container *v1.Container, pod *v1.Pod, uid *int64, username string, nsTarget *kubecontainer.ContainerID) error {
    	enforceMemoryQoS := false
    	// Set memory.min and memory.high if MemoryQoS enabled with cgroups v2
    	if utilfeature.DefaultFeatureGate.Enabled(kubefeatures.MemoryQoS) &&
    		isCgroup2UnifiedMode() {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed May 29 22:40:29 UTC 2024
    - 17.2K bytes
    - Viewed (0)
  5. src/syscall/exec_linux.go

    //
    // Note that User Namespaces are not available on a number of popular Linux
    // versions (due to security issues), or are available but subject to AppArmor
    // restrictions like in Ubuntu 24.04.
    type SysProcIDMap struct {
    	ContainerID int // Container ID.
    	HostID      int // Host ID.
    	Size        int // Size.
    }
    
    type SysProcAttr struct {
    	Chroot     string      // Chroot.
    	Credential *Credential // Credential.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 15 07:45:37 UTC 2024
    - 23K bytes
    - Viewed (0)
  6. pkg/kubelet/cm/devicemanager/manager.go

    		klog.V(4).InfoS("container not present in the initial running set", "podUID", podUID, "containerName", cntName, "containerID", cntID)
    		return false
    	}
    
    	// Once we make it here we know we have a running container.
    	klog.V(4).InfoS("container found in the initial set, assumed running", "podUID", podUID, "containerName", cntName, "containerID", cntID)
    	return true
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Apr 15 12:01:56 UTC 2024
    - 43K bytes
    - Viewed (0)
  7. cni/pkg/plugin/plugin_test.go

    	return testServer.URL, func() bool {
    		testServer.Close()
    		return cniAddServerCalled
    	}
    }
    
    func buildCmdArgs(stdinData, podName, podNamespace string) *skel.CmdArgs {
    	return &skel.CmdArgs{
    		ContainerID: "testContainerID",
    		Netns:       testSandboxDirectory,
    		IfName:      "eth0",
    		Args:        fmt.Sprintf("K8S_POD_NAMESPACE=%s;K8S_POD_NAME=%s", podNamespace, podName),
    		Path:        "/tmp",
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue May 21 18:32:01 UTC 2024
    - 17.5K bytes
    - Viewed (0)
  8. pkg/kubelet/kuberuntime/kuberuntime_container_linux_test.go

    	if err != nil {
    		t.Fatalf("error creating test RuntimeManager: %v", err)
    	}
    
    	for _, tc := range []struct {
    		name   string
    		pod    *v1.Pod
    		target *kubecontainer.ContainerID
    		want   *runtimeapi.NamespaceOption
    	}{
    		{
    			"Default namespaces",
    			&v1.Pod{
    				Spec: v1.PodSpec{
    					Containers: []v1.Container{
    						{Name: "test"},
    					},
    				},
    			},
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed May 29 22:40:29 UTC 2024
    - 41K bytes
    - Viewed (0)
  9. staging/src/k8s.io/apiserver/pkg/endpoints/handlers/responsewriters/writers_test.go

    		containerStatus := &pod.Status.ContainerStatuses[i]
    		state := &containerStatus.State
    		if state.Running != nil {
    			randTime(&state.Running.StartedAt.Time, r)
    		}
    		containerStatus.ContainerID = fmt.Sprintf("docker://%x%x%x%x", r.Int63(), r.Int63(), r.Int63(), r.Int63())
    	}
    	for i := range pod.ManagedFields {
    		randTime(&pod.ManagedFields[i].Time.Time, r)
    	}
    
    	randIP(&pod.Status.HostIP, r)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 24 18:25:29 UTC 2024
    - 15.7K bytes
    - Viewed (0)
  10. pkg/kubelet/pleg/generic_test.go

    		e := <-ch
    		events = append(events, e)
    	}
    	return events
    }
    
    func createTestContainer(ID string, state kubecontainer.State) *kubecontainer.Container {
    	return &kubecontainer.Container{
    		ID:    kubecontainer.ContainerID{Type: testContainerRuntimeType, ID: ID},
    		State: state,
    	}
    }
    
    type sortableEvents []*PodLifecycleEvent
    
    func (a sortableEvents) Len() int      { return len(a) }
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Mar 07 08:12:16 UTC 2024
    - 24.8K bytes
    - Viewed (0)
Back to top