Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 1,700 for ContainerT (0.19 sec)

  1. pkg/kubelet/stats/cri_stats_provider.go

    // removeTerminatedContainers removes all terminated containers since they should
    // not be used for usage calculations.
    func removeTerminatedContainers(containers []*runtimeapi.Container) []*runtimeapi.Container {
    	containerMap := make(map[containerID][]*runtimeapi.Container)
    	// Sort order by create time
    	sort.Slice(containers, func(i, j int) bool {
    		return containers[i].CreatedAt < containers[j].CreatedAt
    	})
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Nov 01 18:46:33 UTC 2023
    - 35.1K bytes
    - Viewed (0)
  2. cni/pkg/plugin/plugin.go

    	Kubernetes      Kubernetes `json:"kubernetes"`
    }
    
    // K8sArgs is the valid CNI_ARGS used for Kubernetes
    // The field names need to match exact keys in containerd args for unmarshalling
    // https://github.com/containerd/containerd/blob/ced9b18c231a28990617bc0a4b8ce2e81ee2ffa1/pkg/cri/server/sandbox_run.go#L526-L532
    type K8sArgs struct {
    	types.CommonArgs
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed Jun 12 16:26:35 UTC 2024
    - 10.7K bytes
    - Viewed (0)
  3. pkg/kubelet/util/util_test.go

    		}, {
    			title:             "valid container index",
    			containers:        []v1.Container{{Name: "container-1"}, {Name: "container-2"}},
    			statuses:          []v1.ContainerStatus{{Name: "container-1"}, {Name: "container-2"}},
    			idx:               1,
    			expectedContainer: v1.Container{Name: "container-2"},
    			expectedOK:        true,
    		},
    	}
    
    	for _, tc := range testCases {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Oct 25 14:16:02 UTC 2023
    - 5.1K bytes
    - Viewed (0)
  4. pkg/kubelet/apis/podresources/server_v1.go

    				continue
    			}
    
    			podResources.Containers = append(podResources.Containers, p.getContainerResources(pod, &container))
    		}
    	}
    
    	for _, container := range pod.Spec.Containers {
    		podResources.Containers = append(podResources.Containers, p.getContainerResources(pod, &container))
    	}
    
    	response := &podresourcesv1.GetPodResourcesResponse{
    		PodResources: podResources,
    	}
    	return response, nil
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Feb 21 13:00:09 UTC 2024
    - 6.2K bytes
    - Viewed (0)
  5. pkg/kubelet/cm/helpers_linux_test.go

    		},
    		"burstable-partial-limits-with-init-containers": {
    			pod: &v1.Pod{
    				Spec: v1.PodSpec{
    					Containers: []v1.Container{
    						{
    							Resources: getResourceRequirements(getResourceList("100m", "100m"), getResourceList("100m", "100Mi")),
    						},
    						{
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 24 18:25:29 UTC 2024
    - 27.8K bytes
    - Viewed (0)
  6. pkg/kubelet/status/generate.go

    		}
    	}
    
    	for _, container := range spec.Containers {
    		if containerStatus, ok := podutil.GetContainerStatus(containerStatuses, container.Name); ok {
    			if !containerStatus.Ready {
    				unreadyContainers = append(unreadyContainers, container.Name)
    			}
    		} else {
    			unknownContainers = append(unknownContainers, container.Name)
    		}
    	}
    
    	// If all containers are known and succeeded, just return PodCompleted.
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Oct 12 15:18:11 UTC 2023
    - 9.8K bytes
    - Viewed (0)
  7. pkg/kubelet/kuberuntime/kuberuntime_gc.go

    				continue
    			}
    		}
    		if err := cgc.manager.removeContainer(ctx, containers[i].id); err != nil {
    			klog.ErrorS(err, "Failed to remove container", "containerID", containers[i].id)
    		}
    	}
    
    	// Assume we removed the containers so that we're not too aggressive.
    	return containers[:numToKeep]
    }
    
    // removeOldestNSandboxes removes the oldest inactive toRemove sandboxes and
    // returns the resulting slice.
    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/apis/core/pods/helpers_test.go

    			[]string{},
    		},
    		{
    			"regular containers",
    			field.NewPath("spec"),
    			&api.PodSpec{
    				Containers: []api.Container{
    					{Name: "c1"},
    					{Name: "c2"},
    				},
    			},
    			[]string{"spec.containers[0]", "spec.containers[1]"},
    		},
    		{
    			"init containers",
    			field.NewPath("spec"),
    			&api.PodSpec{
    				InitContainers: []api.Container{
    					{Name: "i1"},
    					{Name: "i2"},
    				},
    			},
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Jul 14 01:35:30 UTC 2023
    - 6.1K bytes
    - Viewed (0)
  9. pkg/kubelet/container/helpers_test.go

    					},
    					InitContainers: []v1.Container{
    						{Name: "init-container"},
    					},
    				},
    			},
    			haveName:      "init-container",
    			wantContainer: &v1.Container{Name: "init-container"},
    		},
    		{
    			name: "ephemeral container",
    			havePod: &v1.Pod{
    				Spec: v1.PodSpec{
    					Containers: []v1.Container{
    						{Name: "plain-ole-container"},
    					},
    					InitContainers: []v1.Container{
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed May 22 01:55:46 UTC 2024
    - 24.5K bytes
    - Viewed (0)
  10. pkg/kubelet/kuberuntime/kuberuntime_manager.go

    		}
    	}
    
    	// Number of running containers to keep.
    	keepCount := 0
    	// check the status of containers.
    	for idx, container := range pod.Spec.Containers {
    		containerStatus := podStatus.FindContainerStatusByName(container.Name)
    
    		// Call internal container post-stop lifecycle hook for any non-running container so that any
    		// allocated cpus are released immediately. If the container is restarted, cpus will be re-allocated
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed May 22 02:01:31 UTC 2024
    - 64.7K bytes
    - Viewed (0)
Back to top