leasegc

package
v0.16.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 21, 2023 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Controller

type Controller struct {
	// contains filtered or unexported fields
}

Controller deletes expired clusternet leases.

func NewLeaseGC

func NewLeaseGC(clientset kubernetes.Interface, gcCheckPeriod time.Duration, leaseNamespace string, leaseFilter LeaseFilter) *Controller

NewLeaseGC creates a new Controller.

func (*Controller) Run

func (c *Controller) Run(stopCh <-chan struct{})

Run starts one worker.

type LeaseFilter

type LeaseFilter func(lease *v1.Lease) bool

LeaseFilter is a callback handler that helps filter out uninterested objects. It returns true if the lease should pass the filter, else false.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL