const maxUpdateRetries …
const maxBackoff …
type Controller …
type ProcessLeaseFunc …
type controller …
func NewController(clock clock.Clock, client clientset.Interface, holderIdentity string, leaseDurationSeconds int32, onRepeatedHeartbeatFailure func(), renewInterval time.Duration, leaseName, leaseNamespace string, newLeasePostProcessFunc ProcessLeaseFunc) Controller { … }
func (c *controller) Run(ctx context.Context) { … }
func (c *controller) sync(ctx context.Context) { … }
func (c *controller) backoffEnsureLease(ctx context.Context) (*coordinationv1.Lease, bool) { … }
func (c *controller) ensureLease(ctx context.Context) (*coordinationv1.Lease, bool, error) { … }
func (c *controller) retryUpdateLease(ctx context.Context, base *coordinationv1.Lease) error { … }
func (c *controller) newLease(base *coordinationv1.Lease) (*coordinationv1.Lease, error) { … }
func minDuration(a, b time.Duration) time.Duration { … }