machinehealthcheck

package
v0.2.1-0...-d19bdda Latest Latest
Warning

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

Go to latest
Published: Sep 17, 2025 License: Apache-2.0 Imports: 32 Imported by: 9

Documentation

Index

Constants

View Source
const (

	// Event types
	// EventRemediationRestricted is emitted in case when machine remediation
	// is restricted by remediation circuit shorting logic
	EventRemediationRestricted string = "RemediationRestricted"
	// EventDetectedUnhealthy is emitted in case a node asociated with a
	// machine was detected unhealthy
	EventDetectedUnhealthy string = "DetectedUnhealthy"
	// EventSkippedNoController is emitted in case an unhealthy node (or a machine
	// associated with the node) has no controller owner
	EventSkippedNoController string = "SkippedNoController"
	// EventMachineDeletionFailed is emitted in case remediation of a machine
	// is required but deletion of its Machine object failed
	EventMachineDeletionFailed string = "MachineDeletionFailed"
	// EventMachineDeleted is emitted when machine was successfully remediated
	// by deleting its Machine object
	EventMachineDeleted string = "MachineDeleted"
	// EventExternalAnnotationFailed is emitted in case adding external annotation
	// to a Node object failed
	EventExternalAnnotationFailed string = "ExternalAnnotationFailed"
	// EventExternalAnnotationAdded is emitted when external annotation was
	// successfully added to a Node object
	EventExternalAnnotationAdded string = "ExternalAnnotationAdded"
	// PausedAnnotation is an annotation that can be applied to MachineHealthCheck objects to prevent the MHC controller
	// from processing it.
	// TODO: move this annotation to the openshift/api package
	PausedAnnotation = "cluster.x-k8s.io/paused"
)

Variables

This section is empty.

Functions

func Add

func Add(mgr manager.Manager, opts manager.Options) error

Add creates a new MachineHealthCheck Controller and adds it to the Manager. The Manager will set fields on the Controller and start it when the Manager is started.

func MatchMachineHealthCheckStatus

func MatchMachineHealthCheckStatus(expected *machinev1.MachineHealthCheckStatus) types.GomegaMatcher

MatchMachineHealthCheckStatus returns a custom matcher to check equality of machinev1.MachineHealthCheckStatus

Types

type ReconcileMachineHealthCheck

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

ReconcileMachineHealthCheck reconciles a MachineHealthCheck object

func (*ReconcileMachineHealthCheck) Reconcile

Reconcile fetch all targets for a MachineHealthCheck request and does health checking for each of them

Jump to

Keyboard shortcuts

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