machine

package
v1.11.1 Latest Latest
Warning

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

Go to latest
Published: Sep 2, 2025 License: Apache-2.0 Imports: 53 Imported by: 0

Documentation

Overview

Package machine implements machine controller.

Index

Constants

View Source
const (
	// KubeadmControlPlanePreTerminateHookCleanupAnnotation inlined from KCP (we want to avoid importing the KCP API package).
	KubeadmControlPlanePreTerminateHookCleanupAnnotation = clusterv1.PreTerminateDeleteHookAnnotationPrefix + "/kcp-cleanup"
)

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")
	// CommonNodeAnnotations is a collection of annotations common to all nodes that ClusterAPI manages.
	CommonNodeAnnotations = []string{
		clusterv1.ClusterNameAnnotation,
		clusterv1.ClusterNamespaceAnnotation,
		clusterv1.MachineAnnotation,
		clusterv1.OwnerKindAnnotation,
		clusterv1.OwnerNameAnnotation,
	}
)

Functions

func HasMatchingLabels

func HasMatchingLabels(matchSelector metav1.LabelSelector, matchLabels map[string]string) bool

HasMatchingLabels verifies that the Label Selector matches the given Labels.

Types

type Reconciler

type Reconciler struct {
	Client       client.Client
	APIReader    client.Reader
	ClusterCache clustercache.ClusterCache

	// WatchFilterValue is the label value used to filter events prior to reconciliation.
	WatchFilterValue string

	RemoteConditionsGracePeriod time.Duration

	AdditionalSyncMachineLabels      []*regexp.Regexp
	AdditionalSyncMachineAnnotations []*regexp.Regexp
	// contains filtered or unexported fields
}

Reconciler reconciles a Machine object.

func (*Reconciler) Reconcile

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

func (*Reconciler) SetupWithManager

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

Directories

Path Synopsis
Package drain provides a helper to cordon and drain Nodes.
Package drain provides a helper to cordon and drain Nodes.

Jump to

Keyboard shortcuts

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