Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 55 for CONTAINERID (0.2 sec)

  1. pkg/kubelet/kuberuntime/kuberuntime_container_test.go

    	assert.NoError(t, err)
    	assert.Empty(t, containers)
    }
    
    // TestKillContainer tests killing the container in a Pod.
    func TestKillContainer(t *testing.T) {
    	_, _, m, _ := createTestRuntimeManager()
    
    	tests := []struct {
    		caseName            string
    		pod                 *v1.Pod
    		containerID         kubecontainer.ContainerID
    		containerName       string
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed May 29 22:40:29 UTC 2024
    - 28K bytes
    - Viewed (0)
  2. pkg/kubelet/kuberuntime/kuberuntime_logs.go

    	"k8s.io/cri-client/pkg/logs"
    	"k8s.io/klog/v2"
    )
    
    // ReadLogs read the container log and redirect into stdout and stderr.
    // Note that containerID is only needed when following the log, or else
    // just pass in empty string "".
    func (m *kubeGenericRuntimeManager) ReadLogs(ctx context.Context, path, containerID string, apiOpts *v1.PodLogOptions, stdout, stderr io.Writer) error {
    	// Convert v1.PodLogOptions into internal log options.
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu May 30 13:13:22 UTC 2024
    - 1.2K bytes
    - Viewed (0)
  3. cni/pkg/nodeagent/podcgroupns.go

    	var podUID types.UID
    	var containerID string
    	for _, cgroup := range cgroups {
    		candidatePodUID, candidateContainerID, ok := getPodUIDAndContainerIDFromCGroupPath(cgroup.GroupPath)
    		switch {
    		case !ok:
    			// Cgroup did not contain a container ID.
    			continue
    		case containerID == "":
    			// This is the first container ID found so far.
    			podUID = candidatePodUID
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Fri Apr 12 21:47:31 UTC 2024
    - 11K bytes
    - Viewed (0)
  4. pkg/kubelet/logs/container_log_manager.go

    func (c *containerLogManager) Clean(ctx context.Context, containerID string) error {
    	c.mutex.Lock()
    	defer c.mutex.Unlock()
    	resp, err := c.runtimeService.ContainerStatus(ctx, containerID, false)
    	if err != nil {
    		return fmt.Errorf("failed to get container status %q: %v", containerID, err)
    	}
    	if resp.GetStatus() == nil {
    		return fmt.Errorf("container status is nil for %q", containerID)
    	}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat May 04 18:33:12 UTC 2024
    - 15K bytes
    - Viewed (0)
  5. staging/src/k8s.io/api/testdata/v1.30.0/core.v1.Pod.yaml

        type: typeValue
      containerStatuses:
      - allocatedResources:
          allocatedResourcesKey: "0"
        containerID: containerIDValue
        image: imageValue
        imageID: imageIDValue
        lastState:
          running:
            startedAt: "2001-01-01T01:01:01Z"
          terminated:
            containerID: containerIDValue
            exitCode: 1
            finishedAt: "2006-01-01T01:01:01Z"
            message: messageValue
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Apr 18 08:52:25 UTC 2024
    - 33.2K bytes
    - Viewed (0)
  6. 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)
  7. 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)
  8. 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)
  9. staging/src/k8s.io/client-go/applyconfigurations/core/v1/containerstatus.go

    	Image                *string                                 `json:"image,omitempty"`
    	ImageID              *string                                 `json:"imageID,omitempty"`
    	ContainerID          *string                                 `json:"containerID,omitempty"`
    	Started              *bool                                   `json:"started,omitempty"`
    	AllocatedResources   *corev1.ResourceList                    `json:"allocatedResources,omitempty"`
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed May 29 22:40:29 UTC 2024
    - 7.9K bytes
    - Viewed (0)
  10. 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)
Back to top