Logarithmic timestamp comparison for ReplicSet downscaling

Change-Id: I0657ea0ce41b98fdee1a5307b5826a10deaff98c
This commit is contained in:
Aldo Culquicondor
2020-11-26 16:34:21 -05:00
committed by Mike Dame
parent 336bbae82c
commit a8d105ab72
5 changed files with 142 additions and 23 deletions

View File

@@ -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 {