Documentation ¶
Overview ¶
Package controllers implements controllers.
Index ¶
- Constants
- Variables
- type ClusterReconciler
- type MachineDeploymentReconciler
- func (r *MachineDeploymentReconciler) MachineSetToDeployments(o client.Object) []ctrl.Request
- func (r *MachineDeploymentReconciler) Reconcile(ctx context.Context, req ctrl.Request) (_ ctrl.Result, reterr error)
- func (r *MachineDeploymentReconciler) SetupWithManager(ctx context.Context, mgr ctrl.Manager, options controller.Options) error
- type MachineHealthCheckReconciler
- type MachineReconciler
- type MachineSetReconciler
- func (r *MachineSetReconciler) MachineToMachineSets(o client.Object) []ctrl.Request
- func (r *MachineSetReconciler) Reconcile(ctx context.Context, req ctrl.Request) (_ ctrl.Result, reterr error)
- func (r *MachineSetReconciler) SetupWithManager(ctx context.Context, mgr ctrl.Manager, options controller.Options) error
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) 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) 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) 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) 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) SetupWithManager ¶
func (r *MachineSetReconciler) SetupWithManager(ctx context.Context, mgr ctrl.Manager, options controller.Options) error
Source Files ¶
- cluster_controller.go
- cluster_controller_phases.go
- doc.go
- machine_controller.go
- machine_controller_node_labels.go
- machine_controller_noderef.go
- machine_controller_phases.go
- machine_helpers.go
- machinedeployment_controller.go
- machinedeployment_rolling.go
- machinedeployment_rollout_ondelete.go
- machinedeployment_sync.go
- machinehealthcheck_controller.go
- machinehealthcheck_targets.go
- machineset_controller.go
- machineset_delete_policy.go
Directories ¶
Path | Synopsis |
---|---|
Package external implements external controller types.
|
Package external implements external controller types. |
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. |
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. |
Package topology implements the managed topology controller.
|
Package topology implements the managed topology controller. |
internal/check
Package check implements checks for managed topology.
|
Package check implements checks for managed topology. |
internal/contract
Package contract provides support for the ClusterReconciler to handle with providers objects according to the Cluster API contract.
|
Package contract provides support for the ClusterReconciler to handle with providers objects according to the Cluster API contract. |
internal/log
Package log provides log utilities for the topology package.
|
Package log provides log utilities for the topology package. |
internal/mergepatch
Package mergepatch implements merge patch support for managed topology.
|
Package mergepatch implements merge patch support for managed topology. |
internal/scope
Package scope provides types for handling all the information to process a request in the topology/ClusterReconciler controller.
|
Package scope provides types for handling all the information to process a request in the topology/ClusterReconciler controller. |
Click to show internal directories.
Click to hide internal directories.