leasegarbagecollection

package
v0.34.3 Latest Latest
Warning

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

Go to latest
Published: Mar 11, 2024 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	NodeLeaseDeletedCounter = prometheus.NewCounter(
		prometheus.CounterOpts{
			Namespace: "karpenter",
			Subsystem: metrics.NodeSubsystem,
			Name:      "leases_deleted",
			Help:      "Number of deleted leaked leases.",
		},
	)
)

Functions

func NewController

func NewController(kubeClient client.Client) operatorcontroller.Controller

NewController is a constructor

Types

type Controller

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

Controller for the resource

func (*Controller) Builder

func (*Controller) Name

func (c *Controller) Name() string

func (*Controller) Reconcile

func (c *Controller) Reconcile(ctx context.Context, l *v1.Lease) (reconcile.Result, error)

Reconcile the resource

Jump to

Keyboard shortcuts

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