type NewRunner … // RunWithLeaderElection runs the provided runner function with leader election. // newRunnerFn might be called multiple times, and it should return another // controller instance's Run method each time. // RunWithLeaderElection only returns when the context is done, or initial // leader election fails. func RunWithLeaderElection(ctx context.Context, config *rest.Config, newRunnerFn NewRunner) { … }