node

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Jul 30, 2021 License: Apache-2.0 Imports: 16 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 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(_ context.Context, m manager.Manager) error

type Finalizer

type Finalizer struct{}

Finalizer is a tiny reconciler 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

func (r *Finalizer) Reconcile(n *v1.Node) error

Reconcile adds the termination finalizer if the node is not deleting

type Readiness

type Readiness struct{}

Readiness is a tiny reconciler that removes the readiness taint when the node is ready

func (*Readiness) Reconcile

func (r *Readiness) Reconcile(n *v1.Node) error

Reconcile removes the NotReady taint when the node is ready

Jump to

Keyboard shortcuts

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