func pickBestLeaderOldestEmulationVersion(candidates []*v1alpha1.LeaseCandidate) *v1alpha1.LeaseCandidate { … }
func topologicalSortWithOneRoot(graph map[v1.CoordinatedLeaseStrategy][]v1.CoordinatedLeaseStrategy) []v1.CoordinatedLeaseStrategy { … }
func pickBestStrategy(candidates []*v1alpha1.LeaseCandidate) (v1.CoordinatedLeaseStrategy, error) { … }
func validLeaseCandidateForOldestEmulationVersion(l *v1alpha1.LeaseCandidate) bool { … }
func getEmulationVersionOrZero(l *v1alpha1.LeaseCandidate) semver.Version { … }
func getBinaryVersionOrZero(l *v1alpha1.LeaseCandidate) semver.Version { … }
func compare(lhs, rhs *v1alpha1.LeaseCandidate) int { … }
func isLeaseExpired(clock clock.Clock, lease *v1.Lease) bool { … }
func isLeaseCandidateExpired(clock clock.Clock, lease *v1alpha1.LeaseCandidate) bool { … }