Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 5 of 5 for CouldHaveRunningContainers (0.77 sec)

  1. pkg/kubelet/pod_workers_test.go

    		t.Errorf("Expected pod to not be terminating")
    	}
    
    	if podWorkers.CouldHaveRunningContainers(types.UID("0")) {
    		t.Errorf("Expected pod to be terminated (deleted and terminated)")
    	}
    	if podWorkers.CouldHaveRunningContainers(types.UID("1")) {
    		t.Errorf("Expected pod to be terminated")
    	}
    	if !podWorkers.CouldHaveRunningContainers(types.UID("2")) {
    		t.Errorf("Expected pod to not be terminated")
    	}
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Jun 04 06:25:43 UTC 2024
    - 75.6K bytes
    - Viewed (0)
  2. pkg/kubelet/status/status_manager.go

    // running containers have terminated. This method does not modify the old status.
    func mergePodStatus(oldPodStatus, newPodStatus v1.PodStatus, couldHaveRunningContainers bool) v1.PodStatus {
    	podConditions := make([]v1.PodCondition, 0, len(oldPodStatus.Conditions)+len(newPodStatus.Conditions))
    
    	for _, c := range oldPodStatus.Conditions {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu May 02 16:27:19 UTC 2024
    - 44.3K bytes
    - Viewed (0)
  3. pkg/kubelet/pod_workers.go

    	// without error) or if the pod does not exist, or if the pod has already terminated. This
    	// could take an arbitrary amount of time to be closed, but is never left open once
    	// CouldHaveRunningContainers() returns false.
    	CompletedCh chan<- struct{}
    	// Evict is true if this is a pod triggered eviction - once a pod is evicted some resources are
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Apr 02 13:22:37 UTC 2024
    - 74.8K bytes
    - Viewed (0)
  4. pkg/kubelet/kubelet_pods.go

    // containers. This returns false if the pod has not yet been started or the pod is unknown.
    func (kl *Kubelet) PodCouldHaveRunningContainers(pod *v1.Pod) bool {
    	if kl.podWorkers.CouldHaveRunningContainers(pod.UID) {
    		return true
    	}
    
    	// Check if pod might need to unprepare resources before termination
    	// NOTE: This is a temporary solution. This call is here to avoid changing
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Jun 14 16:09:17 UTC 2024
    - 101.2K bytes
    - Viewed (0)
  5. pkg/kubelet/kubelet.go

    		// TODO(vinaykul,InPlacePodVerticalScaling): Investigate doing this in HandlePodUpdates + periodic SyncLoop scan
    		//     See: https://github.com/kubernetes/kubernetes/pull/102884#discussion_r663160060
    		if kl.podWorkers.CouldHaveRunningContainers(pod.UID) && !kubetypes.IsStaticPod(pod) {
    			pod = kl.handlePodResourcesResize(pod)
    		}
    	}
    
    	// TODO(#113606): use cancellation from the incoming context parameter, which comes from the pod worker.
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Jun 14 16:09:17 UTC 2024
    - 126.1K bytes
    - Viewed (0)
Back to top