node

package
v0.9.1 Latest Latest
Warning

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

Go to latest
Published: May 2, 2022 License: Apache-2.0 Imports: 23 Imported by: 0

Documentation

Index

Constants

View Source
const InitializationTimeout = 15 * time.Minute

Variables

This section is empty.

Functions

This section is empty.

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 NewController

func NewController(kubeClient client.Client) *Controller

NewController constructs a controller instance

func (*Controller) Reconcile

func (c *Controller) Reconcile(ctx context.Context, req reconcile.Request) (reconcile.Result, error)

Reconcile executes a reallocation control loop for the resource

func (*Controller) Register

func (c *Controller) Register(ctx context.Context, m manager.Manager) 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

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

Expiration is a subreconciler that terminates nodes after a period of time.

func (*Expiration) Reconcile

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

Reconcile reconciles the node

type Finalizer

type Finalizer struct{}

Finalizer is a subreconciler that ensures nodes have the termination finalizer. This protects against instances that launch when Karpenter fails to create the node object. In this case, the node will come online without the termination finalizer. This controller will update the node accordingly.

func (*Finalizer) Reconcile

Reconcile reconciles the node

type Initialization added in v0.5.6

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

Initialization is a subreconciler that 1. Removes the NotReady taint when the node is ready. This taint is originally applied on node creation. 2. Terminates nodes that don't transition to ready within InitializationTimeout

func (*Initialization) Reconcile added in v0.5.6

Reconcile reconciles the node

Jump to

Keyboard shortcuts

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