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 ¶
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
Click to show internal directories.
Click to hide internal directories.