mirror of
https://github.com/k3s-io/kubernetes.git
synced 2026-07-17 02:06:23 +00:00
Moved the top-level logic associated with the data in k8s.io/apiserver/pkg/util/flowcontrol into the same package, greatly simplifying its interface. Also plumbed the call to NewRequestManagementSystem (1) into `RecommendedOptions::ApplyTo(RecommendedConfig)` for running in aggregated servers and (2) into buildGenericConfig in the kube-apiserver code. Also moved the definitions of FairQueuingSystem and FairQueuingFactory into the directory where Aaron is developing his implementation of those. Also did some renaming to satisfy golint: FairQueuingSytem became QueueSet, and FairQueuingFactory became QueueSetFactory. Also realized that the clock should be passed in every Create... call to the Factory, the Factory should hold the clock to use (as well as the WaitGroup that will be helpful for testing).