- Sort Score
- Result 10 results
- Languages All
Results 1 - 2 of 2 for overlappingStatefulSets (0.31 sec)
-
pkg/controller/statefulset/stateful_set_utils.go
// overlappingStatefulSets sorts a list of StatefulSets by creation timestamp, using their names as a tie breaker. // Generally used to tie break between StatefulSets that have overlapping selectors. type overlappingStatefulSets []*apps.StatefulSet func (o overlappingStatefulSets) Len() int { return len(o) } func (o overlappingStatefulSets) Swap(i, j int) { o[i], o[j] = o[j], o[i] }
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_utils_test.go
} sort.Sort(overlappingStatefulSets(sets)) if !sort.IsSorted(overlappingStatefulSets(sets)) { t.Error("ascendingOrdinal fails to sort Pods") } for i, v := range perm { sets[i] = newStatefulSet(10) sets[i].Name = strconv.FormatInt(int64(v), 10) } sort.Sort(overlappingStatefulSets(sets)) if !sort.IsSorted(overlappingStatefulSets(sets)) {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Jun 05 19:06:41 UTC 2024 - 50.9K bytes - Viewed (0)