controllers

package
Version: v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Oct 6, 2021 License: Apache-2.0 Imports: 57 Imported by: 0

Documentation

Overview

Package controllers implements controllers.

Index

Constants

View Source
const (

	// EventMachineMarkedUnhealthy is emitted when machine was successfully marked as unhealthy.
	EventMachineMarkedUnhealthy string = "MachineMarkedUnhealthy"
	// EventDetectedUnhealthy is emitted in case a node associated with a
	// machine was detected unhealthy.
	EventDetectedUnhealthy string = "DetectedUnhealthy"
)
View Source
const (

	// EventRemediationRestricted is emitted in case when machine remediation
	// is restricted by remediation circuit shorting logic.
	EventRemediationRestricted string = "RemediationRestricted"
)
View Source
const (
	// MachineControllerName defines the controller used when creating clients.
	MachineControllerName = "machine-controller"
)

Variables

View Source
var (
	// ErrNodeNotFound signals that a corev1.Node could not be found for the given provider id.
	ErrNodeNotFound = errors.New("cannot find node with matching ProviderID")
)

Functions

This section is empty.

Types

type ClusterReconciler

type ClusterReconciler struct {
	Client           client.Client
	WatchFilterValue string
	// contains filtered or unexported fields
}

ClusterReconciler reconciles a Cluster object.

func (*ClusterReconciler) Reconcile

func (r *ClusterReconciler) Reconcile(ctx context.Context, req ctrl.Request) (_ ctrl.Result, reterr error)

func (*ClusterReconciler) SetupWithManager

func (r *ClusterReconciler) SetupWithManager(ctx context.Context, mgr ctrl.Manager, options controller.Options) error

type MachineDeploymentReconciler

type MachineDeploymentReconciler struct {
	Client           client.Client
	WatchFilterValue string
	// contains filtered or unexported fields
}

MachineDeploymentReconciler reconciles a MachineDeployment object.

func (*MachineDeploymentReconciler) MachineSetToDeployments

func (r *MachineDeploymentReconciler) MachineSetToDeployments(o client.Object) []ctrl.Request

MachineSetToDeployments is a handler.ToRequestsFunc to be used to enqueue requests for reconciliation for MachineDeployments that might adopt an orphaned MachineSet.

func (*MachineDeploymentReconciler) Reconcile

func (r *MachineDeploymentReconciler) Reconcile(ctx context.Context, req ctrl.Request) (_ ctrl.Result, reterr error)

func (*MachineDeploymentReconciler) SetupWithManager

func (r *MachineDeploymentReconciler) SetupWithManager(ctx context.Context, mgr ctrl.Manager, options controller.Options) error

type MachineHealthCheckReconciler added in v0.3.0

type MachineHealthCheckReconciler struct {
	Client           client.Client
	Tracker          *remote.ClusterCacheTracker
	WatchFilterValue string
	// contains filtered or unexported fields
}

MachineHealthCheckReconciler reconciles a MachineHealthCheck object.

func (*MachineHealthCheckReconciler) Reconcile added in v0.3.0

func (r *MachineHealthCheckReconciler) Reconcile(ctx context.Context, req ctrl.Request) (_ ctrl.Result, reterr error)

func (*MachineHealthCheckReconciler) SetupWithManager added in v0.3.0

func (r *MachineHealthCheckReconciler) SetupWithManager(ctx context.Context, mgr ctrl.Manager, options controller.Options) error

type MachineReconciler

type MachineReconciler struct {
	Client           client.Client
	Tracker          *remote.ClusterCacheTracker
	WatchFilterValue string
	// contains filtered or unexported fields
}

MachineReconciler reconciles a Machine object.

func (*MachineReconciler) Reconcile

func (r *MachineReconciler) Reconcile(ctx context.Context, req ctrl.Request) (_ ctrl.Result, reterr error)

func (*MachineReconciler) SetupWithManager

func (r *MachineReconciler) SetupWithManager(ctx context.Context, mgr ctrl.Manager, options controller.Options) error

type MachineSetReconciler

type MachineSetReconciler struct {
	Client           client.Client
	Tracker          *remote.ClusterCacheTracker
	WatchFilterValue string
	// contains filtered or unexported fields
}

MachineSetReconciler reconciles a MachineSet object.

func (*MachineSetReconciler) MachineToMachineSets

func (r *MachineSetReconciler) MachineToMachineSets(o client.Object) []ctrl.Request

MachineToMachineSets is a handler.ToRequestsFunc to be used to enqeue requests for reconciliation for MachineSets that might adopt an orphaned Machine.

func (*MachineSetReconciler) Reconcile

func (r *MachineSetReconciler) Reconcile(ctx context.Context, req ctrl.Request) (_ ctrl.Result, reterr error)

func (*MachineSetReconciler) SetupWithManager

func (r *MachineSetReconciler) SetupWithManager(ctx context.Context, mgr ctrl.Manager, options controller.Options) error

Directories

Path Synopsis
Package external implements external controller types.
Package external implements external controller types.
Package noderefutil implements NodeRef utils.
Package noderefutil implements NodeRef utils.
Package remote implements remote controllers.
Package remote implements remote controllers.
fake
Package fake implements testing fakes.
Package fake implements testing fakes.
Package topology implements the managed topology controller.
Package topology implements the managed topology controller.
internal
mdutil
Package mdutil implements MachineDeployment utilities meant to be consumed internally by the controller.
Package mdutil implements MachineDeployment utilities meant to be consumed internally by the controller.

Jump to

Keyboard shortcuts

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