type Controller … // NewAPIServerLeaseGC creates a new Controller. func NewAPIServerLeaseGC(clientset kubernetes.Interface, gcCheckPeriod time.Duration, leaseNamespace, leaseLabelSelector string) *Controller { … } // Run starts one worker. func (c *Controller) Run(stopCh <-chan struct{ … } func (c *Controller) gc() { … } func isLeaseExpired(lease *v1.Lease) bool { … }