mirror of
https://github.com/outbackdingo/kubernetes.git
synced 2026-02-06 09:26:33 +00:00
The binder sorts all available volumes first, then it filters out volumes that cannot be bound by processing each volume in a loop and then finds the smallest matching volume by binary search. So, if we process every available volume in a loop, we can also remember the smallest matching one and save us potentially long sorting (and quick binary search).