disruption

package
v1.0.2 Latest Latest
Warning

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

Go to latest
Published: Sep 26, 2024 License: Apache-2.0 Imports: 22 Imported by: 0

Documentation

Index

Constants

View Source
const (
	NodePoolDrifted     cloudprovider.DriftReason = "NodePoolDrifted"
	RequirementsDrifted cloudprovider.DriftReason = "RequirementsDrifted"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Consolidation added in v1.0.0

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

Consolidation is a nodeclaim sub-controller that adds or removes status conditions on empty nodeclaims based on consolidateAfter

func (*Consolidation) Reconcile added in v1.0.0

func (c *Consolidation) Reconcile(ctx context.Context, nodePool *v1.NodePool, nodeClaim *v1.NodeClaim) (reconcile.Result, error)

type Controller

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

Controller is a disruption controller that adds StatusConditions to nodeclaims when they meet certain disruption conditions e.g. When the NodeClaim has become empty, then it is marked as "Empty" in the StatusConditions

func NewController

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

NewController constructs a nodeclaim disruption controller. Note that every sub-controller has a dependency on its nodepool. Disruption mechanisms that don't depend on the nodepool (like expiration), should live elsewhere.

func (*Controller) Reconcile

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

Reconcile executes a control loop for the resource

func (*Controller) Register added in v0.37.0

func (c *Controller) Register(_ context.Context, m manager.Manager) error

type Drift

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

Drift is a nodeclaim sub-controller that adds or removes status conditions on drifted nodeclaims

func (*Drift) Reconcile

func (d *Drift) Reconcile(ctx context.Context, nodePool *v1.NodePool, nodeClaim *v1.NodeClaim) (reconcile.Result, error)

Jump to

Keyboard shortcuts

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