node

package
v0.4.3 Latest Latest
Warning

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

Go to latest
Published: Nov 15, 2021 License: Apache-2.0 Imports: 23 Imported by: 0

Documentation

Index

Constants

View Source
const LivenessTimeout = 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 properites 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 Liveness

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

Liveness is a subreconciler that deletes nodes determined to be unrecoverable

func (*Liveness) Reconcile

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

Reconcile reconciles the node

type Readiness

type Readiness struct{}

Readiness is a subreconciler that removes the NotReady taint when the node is ready

func (*Readiness) Reconcile

Reconcile reconciles the node

Jump to

Keyboard shortcuts

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