- Sort Score
- Result 10 results
- Languages All
Results 1 - 1 of 1 for podInOrdinalRange (0.57 sec)
-
pkg/controller/statefulset/stateful_set_utils.go
func getEndOrdinal(set *apps.StatefulSet) int { return getStartOrdinal(set) + int(*set.Spec.Replicas) - 1 } // podInOrdinalRange returns true if the pod ordinal is within the allowed // range of ordinals that this StatefulSet is set to control. func podInOrdinalRange(pod *v1.Pod, set *apps.StatefulSet) bool { ordinal := getOrdinal(pod) return ordinal >= getStartOrdinal(set) && ordinal <= getEndOrdinal(set) }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Jun 05 19:06:41 UTC 2024 - 26.7K bytes - Viewed (0)