machine

package
v0.0.0-...-d7985ca Latest Latest
Warning

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

Go to latest
Published: Mar 13, 2023 License: Apache-2.0 Imports: 32 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsDuplicateNodeError

func IsDuplicateNodeError(err error) bool

func IsNodeNotFoundError

func IsNodeNotFoundError(err error) bool

func NewController

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

NewController is a constructor for the Machine Controller

Types

type Controller

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

Controller is a Machine Controller

func (*Controller) Builder

func (*Controller) Finalize

func (c *Controller) Finalize(ctx context.Context, machine *v1alpha5.Machine) (reconcile.Result, error)

func (*Controller) Name

func (*Controller) Name() string

func (*Controller) Reconcile

func (c *Controller) Reconcile(ctx context.Context, machine *v1alpha5.Machine) (reconcile.Result, error)

type DuplicateNodeError

type DuplicateNodeError struct {
	ProviderID string
}

func (*DuplicateNodeError) Error

func (e *DuplicateNodeError) Error() string

type GarbageCollect

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

func (*GarbageCollect) Reconcile

func (e *GarbageCollect) Reconcile(ctx context.Context, machine *v1alpha5.Machine) (reconcile.Result, error)

type Initialization

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

func (*Initialization) Reconcile

func (i *Initialization) Reconcile(ctx context.Context, machine *v1alpha5.Machine) (reconcile.Result, error)

Reconcile checks for initialization based on if: a) its current status is set to Ready b) all the startup taints have been removed from the node c) all extended resources have been registered This method handles both nil provisioners and nodes without extended resources gracefully.

type Launch

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

func (*Launch) Reconcile

func (l *Launch) Reconcile(ctx context.Context, machine *v1alpha5.Machine) (reconcile.Result, error)

type Liveness

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

func (*Liveness) Reconcile

func (l *Liveness) Reconcile(ctx context.Context, machine *v1alpha5.Machine) (reconcile.Result, error)

type NodeNotFoundError

type NodeNotFoundError struct {
	ProviderID string
}

func (*NodeNotFoundError) Error

func (e *NodeNotFoundError) Error() string

type Registration

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

func (*Registration) Reconcile

func (r *Registration) Reconcile(ctx context.Context, machine *v1alpha5.Machine) (reconcile.Result, error)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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