Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for IsTerminated (0.11 sec)

  1. pkg/kubelet/pod_workers_test.go

    	pod1 = podWorkers.podSyncStatuses[types.UID("1-normal")]
    	if pod1.IsTerminated() {
    		t.Fatalf("unexpected pod state: %#v", pod1)
    	}
    	pod2 = podWorkers.podSyncStatuses[types.UID("2-static")]
    	if pod2.IsTerminated() {
    		t.Fatalf("unexpected pod state: %#v", pod2)
    	}
    	pod3 := podWorkers.podSyncStatuses[types.UID("3-static")]
    	if pod3.IsTerminated() {
    		t.Fatalf("unexpected pod state: %#v", pod3)
    	}
    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/pod_workers.go

    	if status, ok := p.podSyncStatuses[uid]; ok {
    		return status.IsTerminated()
    	}
    	// if the pod is not known, we return false (pod worker is not aware of it)
    	return false
    }
    
    func (p *podWorkers) CouldHaveRunningContainers(uid types.UID) bool {
    	p.podLock.Lock()
    	defer p.podLock.Unlock()
    	if status, ok := p.podSyncStatuses[uid]; ok {
    		return !status.IsTerminated()
    	}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Apr 02 13:22:37 UTC 2024
    - 74.8K bytes
    - Viewed (0)
Back to top