mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-09-22 02:18:51 +00:00
Logarithmic timestamp comparison for ReplicSet downscaling
Change-Id: I0657ea0ce41b98fdee1a5307b5826a10deaff98c
This commit is contained in:
committed by
Mike Dame
parent
336bbae82c
commit
a8d105ab72
@@ -822,7 +822,7 @@ func getPodsRankedByRelatedPodsOnSameNode(podsToRank, relatedPods []*v1.Pod) con
|
||||
for i, pod := range podsToRank {
|
||||
ranks[i] = podsOnNode[pod.Spec.NodeName]
|
||||
}
|
||||
return controller.ActivePodsWithRanks{Pods: podsToRank, Rank: ranks}
|
||||
return controller.ActivePodsWithRanks{Pods: podsToRank, Rank: ranks, Now: metav1.Now()}
|
||||
}
|
||||
|
||||
func getPodKeys(pods []*v1.Pod) []string {
|
||||
|
Reference in New Issue
Block a user