Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 13 for CONTAINERID (0.12 sec)

  1. pkg/kubelet/kuberuntime/kuberuntime_container.go

    		"containerName", containerName, "containerID", containerID.String(), "gracePeriod", gracePeriod)
    
    	err := m.runtimeService.StopContainer(ctx, containerID.ID, gracePeriod)
    	if err != nil && !crierror.IsNotFound(err) {
    		klog.ErrorS(err, "Container termination failed with gracePeriod", "pod", klog.KObj(pod), "podUID", pod.UID,
    			"containerName", containerName, "containerID", containerID.String(), "gracePeriod", gracePeriod)
    		return err
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Jun 04 06:25:43 UTC 2024
    - 54.7K bytes
    - Viewed (0)
  2. pkg/kubelet/container/runtime.go

    	ID string
    }
    
    // BuildContainerID returns the ContainerID given type and id.
    func BuildContainerID(typ, ID string) ContainerID {
    	return ContainerID{Type: typ, ID: ID}
    }
    
    // ParseContainerID is a convenience method for creating a ContainerID from an ID string.
    func ParseContainerID(containerID string) ContainerID {
    	var id ContainerID
    	if err := id.ParseString(containerID); err != nil {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Jun 07 00:05:23 UTC 2024
    - 27.8K bytes
    - Viewed (0)
  3. pkg/kubelet/userns/userns_manager.go

    	for _, u := range userNs.UIDMappings {
    		uids = append(uids, &runtimeapi.IDMapping{
    			HostId:      u.HostId,
    			ContainerId: u.ContainerId,
    			Length:      u.Length,
    		})
    	}
    	for _, g := range userNs.GIDMappings {
    		gids = append(gids, &runtimeapi.IDMapping{
    			HostId:      g.HostId,
    			ContainerId: g.ContainerId,
    			Length:      g.Length,
    		})
    	}
    
    	return &runtimeapi.UserNamespace{
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Jun 04 06:25:43 UTC 2024
    - 14.3K bytes
    - Viewed (0)
  4. pkg/kubelet/kuberuntime/kuberuntime_gc.go

    					klog.InfoS("Error getting ContainerStatus for containerID", "containerID", containerID, "err", err)
    				} else {
    					status := resp.GetStatus()
    					if status == nil {
    						klog.V(4).InfoS("Container status is nil")
    						continue
    					}
    					if status.State != runtimeapi.ContainerState_CONTAINER_EXITED {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Jun 04 06:25:43 UTC 2024
    - 15.3K bytes
    - Viewed (0)
  5. pkg/kubelet/kuberuntime/kuberuntime_manager_test.go

    	podSandboxID := apitest.BuildSandboxName(sandboxConfig.Metadata)
    	containerID := apitest.BuildContainerName(containerConfig.Metadata, podSandboxID)
    	imageRef := containerConfig.Image.Image
    	return &apitest.FakeContainer{
    		ContainerStatus: runtimeapi.ContainerStatus{
    			Id:          containerID,
    			Metadata:    containerConfig.Metadata,
    			Image:       containerConfig.Image,
    			ImageRef:    imageRef,
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Jun 14 16:09:17 UTC 2024
    - 96K bytes
    - Viewed (0)
  6. pkg/kubelet/pleg/generic.go

    							containerExitCode[containerStatus.ID.ID] = containerStatus.ExitCode
    						}
    					}
    				}
    				if containerID, ok := events[i].Data.(string); ok {
    					if exitCode, ok := containerExitCode[containerID]; ok && pod != nil {
    						klog.V(2).InfoS("Generic (PLEG): container finished", "podID", pod.ID, "containerID", containerID, "exitCode", exitCode)
    					}
    				}
    			}
    		}
    	}
    
    	if g.cacheEnabled() {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Jun 04 06:25:43 UTC 2024
    - 19.3K bytes
    - Viewed (0)
  7. pkg/kubelet/kubelet_test.go

    	fakeRuntime := testKubelet.fakeRuntime
    	containerID := kubecontainer.ContainerID{
    		Type: "test",
    		ID:   "abc1234",
    	}
    
    	fakePod := &containertest.FakePod{
    		Pod: &kubecontainer.Pod{
    			ID:        "12345678",
    			Name:      "podFoo",
    			Namespace: "nsFoo",
    			Containers: []*kubecontainer.Container{
    				{
    					Name: "containerFoo",
    					ID:   containerID,
    				},
    			},
    		},
    	}
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Jun 14 16:09:17 UTC 2024
    - 106.9K bytes
    - Viewed (0)
  8. pkg/kubelet/kubelet_pods.go

    		}
    		cID = lastState.Terminated.ContainerID
    
    	case running != nil:
    		cID = cStatus.ContainerID
    
    	case terminated != nil:
    		// in cases where the next container didn't start, terminated.ContainerID will be empty, so get logs from the lastState.Terminated.
    		if terminated.ContainerID == "" {
    			if lastState.Terminated != nil && lastState.Terminated.ContainerID != "" {
    				cID = lastState.Terminated.ContainerID
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Jun 14 16:09:17 UTC 2024
    - 101.2K bytes
    - Viewed (0)
  9. pkg/kubelet/kubelet_pods_test.go

    		}
    		kubelet.runner = &fakeCommandRunner
    
    		containerID := kubecontainer.ContainerID{Type: "test", ID: "abc1234"}
    		fakeRuntime.PodList = []*containertest.FakePod{
    			{Pod: &kubecontainer.Pod{
    				ID:        "12345678",
    				Name:      "podFoo",
    				Namespace: "nsFoo",
    				Containers: []*kubecontainer.Container{
    					{Name: "containerFoo",
    						ID: containerID,
    					},
    				},
    			}},
    		}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Jun 07 00:05:23 UTC 2024
    - 198.8K bytes
    - Viewed (0)
  10. 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)
Back to top