consistency

package
v1.1.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FailedConsistencyCheckEvent

func FailedConsistencyCheckEvent(nodeClaim *v1.NodeClaim, message string) events.Event

Types

type Check

type Check interface {
	// Check performs the consistency check, this should return a list of slice discovered, or an empty
	// slice if no issues were found
	Check(context.Context, *corev1.Node, *v1.NodeClaim) ([]Issue, error)
}

func NewNodeShape

func NewNodeShape() Check

func NewTermination

func NewTermination(clk clock.Clock, kubeClient client.Client) Check

type Controller

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

func NewController

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

func (*Controller) Reconcile

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

func (*Controller) Register added in v0.37.0

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

type Issue

type Issue string

type NodeShape

type NodeShape struct{}

NodeShape detects nodes that have launched with 10% or less of any resource than was expected.

func (*NodeShape) Check

func (n *NodeShape) Check(_ context.Context, node *corev1.Node, nodeClaim *v1.NodeClaim) ([]Issue, error)

type Termination

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

Termination detects nodes that are stuck terminating and reports why.

func (*Termination) Check

func (t *Termination) Check(ctx context.Context, node *corev1.Node, nodeClaim *v1.NodeClaim) ([]Issue, error)

Jump to

Keyboard shortcuts

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