- Sort Score
- Result 10 results
- Languages All
Results 1 - 2 of 2 for isRunningAndReady (1.4 sec)
-
pkg/controller/statefulset/stateful_set_utils.go
if utilfeature.DefaultFeatureGate.Enabled(features.PodIndexLabel) { pod.Labels[apps.PodIndexLabel] = strconv.Itoa(ordinal) } } // isRunningAndReady returns true if pod is in the PodRunning Phase, if it has a condition of PodReady. func isRunningAndReady(pod *v1.Pod) bool { return pod.Status.Phase == v1.PodRunning && podutil.IsPodReady(pod) } func isRunningAndAvailable(pod *v1.Pod, minReadySeconds int32) bool {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Jun 05 19:06:41 UTC 2024 - 26.7K bytes - Viewed (0) -
pkg/controller/statefulset/stateful_set_control.go
status := replicaStatus{} for _, pod := range pods { if isCreated(pod) { status.replicas++ } // count the number of running and ready replicas if isRunningAndReady(pod) { status.readyReplicas++ // count the number of running and available replicas if isRunningAndAvailable(pod, minReadySeconds) { status.availableReplicas++ } }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Thu Apr 18 08:03:46 UTC 2024 - 30.9K bytes - Viewed (0)