- Sort Score
- Result 10 results
- Languages All
Results 1 - 5 of 5 for isPodRunning (0.27 sec)
-
pkg/kubelet/runonce_test.go
// the original logic of isPodRunning happens to return true when podstatus is empty, so the test can always pass. // Now the logic in isPodRunning is changed, to let the test pass, we set the podstatus directly in fake runtime. // This is also a meaningless test, because the isPodRunning will also always return true after setting this. However,
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Thu Apr 18 06:59:54 UTC 2024 - 6.5K bytes - Viewed (0) -
pkg/kubelet/runonce.go
time.Sleep(delay) retry++ delay *= runOnceRetryDelayBackoff } return nil } // isPodRunning returns true if all containers of a manifest are running. func (kl *Kubelet) isPodRunning(pod *v1.Pod, status *kubecontainer.PodStatus) bool { for _, c := range pod.Spec.Containers { cs := status.FindContainerStatusByName(c.Name)
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri Aug 04 06:56:50 UTC 2023 - 5.9K bytes - Viewed (0) -
pilot/pkg/serviceregistry/kube/controller/ambient/helpers.go
} return prefix.Addr(), nil } return netip.ParseAddr(ip) } func AppendNonNil[T any](data []T, i *T) []T { if i != nil { data = append(data, *i) } return data } func IsPodRunning(pod *v1.Pod) bool { return pod.Status.Phase == v1.PodRunning } func IsPodPending(pod *v1.Pod) bool { return pod.Status.Phase == v1.PodPending }
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Fri Mar 22 20:35:23 UTC 2024 - 7.2K bytes - Viewed (0) -
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) -
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)