controllers

package
v0.4.0-rc.0 Latest Latest
Warning

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

Go to latest
Published: Jun 22, 2021 License: Apache-2.0 Imports: 55 Imported by: 2

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 mdutil implements MachineDeployment utilities.
Package mdutil implements MachineDeployment utilities.
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.

Jump to

Keyboard shortcuts

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