node

package
v0.28.0-rc.2 Latest Latest
Warning

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

Go to latest
Published: May 30, 2023 License: Apache-2.0 Imports: 26 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewController

func NewController(clk clock.Clock, kubeClient client.Client, cloudProvider cloudprovider.CloudProvider, cluster *state.Cluster) corecontroller.Controller

NewController constructs a nodeController instance

Types

type Controller

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

Controller manages a set of properties on karpenter provisioned nodes, such as taints, labels, finalizers.

func (*Controller) Builder

func (*Controller) Name

func (c *Controller) Name() string

func (*Controller) Reconcile

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

Reconcile executes a reallocation control loop for the resource

type Drift added in v0.22.0

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

func (*Drift) Reconcile added in v0.22.0

func (d *Drift) Reconcile(ctx context.Context, provisioner *v1alpha5.Provisioner, node *v1.Node) (reconcile.Result, error)

type Emptiness

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

Emptiness is a subreconciler that deletes nodes that are empty after a ttl

func (*Emptiness) Reconcile

func (r *Emptiness) Reconcile(ctx context.Context, provisioner *v1alpha5.Provisioner, n *v1.Node) (reconcile.Result, error)

Reconcile reconciles the node

type Expiration added in v0.27.3

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

Expiration is a node sub-controller that annotates or de-annotates an expired node based on TTLSecondsUntilExpired

func (*Expiration) Reconcile added in v0.27.3

func (e *Expiration) Reconcile(ctx context.Context, provisioner *v1alpha5.Provisioner, node *v1.Node) (reconcile.Result, error)

Jump to

Keyboard shortcuts

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