Search Options

Results per page
Sort
Preferred Languages
Advance

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

  1. pilot/pkg/serviceregistry/kube/controller/pod.go

    	}
    
    	return true
    }
    
    // isPodPhaseTerminal returns true if the pod's phase is terminal.
    func isPodPhaseTerminal(phase v1.PodPhase) bool {
    	return phase == v1.PodFailed || phase == v1.PodSucceeded
    }
    
    func IsPodRunning(pod *v1.Pod) bool {
    	return pod.Status.Phase == v1.PodRunning
    }
    
    // IsPodReady is copied from kubernetes/pkg/api/v1/pod/utils.go
    func IsPodReady(pod *v1.Pod) bool {
    	return IsPodReadyConditionTrue(pod.Status)
    }
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu May 23 21:07:03 UTC 2024
    - 10.8K bytes
    - Viewed (0)
  2. pilot/pkg/serviceregistry/kube/controller/ambient/workloads.go

    		// Pod Is Pending but have a pod IP should be a valid workload, we should build it ,
    		// Such as the pod have initContainer which is initialing.
    		// See https://github.com/istio/istio/issues/48854
    		if (!IsPodRunning(p) && !IsPodPending(p)) || p.Spec.HostNetwork {
    			return nil
    		}
    		podIP, err := netip.ParseAddr(p.Status.PodIP)
    		if err != nil {
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Jun 13 16:51:29 UTC 2024
    - 20.9K bytes
    - Viewed (0)
Back to top