mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-12-16 08:02:51 +00:00
Passing in a context instead of a stop channel has several advantages: - ensures that client-go calls return as soon as the controller is asked to stop - contextual logging can be used By passing that context down to its own functions and checking it while waiting, the lease controller also doesn't get stuck in backoffEnsureLease anymore (https://github.com/kubernetes/kubernetes/issues/116196).
32 KiB
32 KiB