Documentation
¶
Index ¶
Constants ¶
View Source
const NodeConditionTerminating = "Terminating"
NodeConditionTerminating is the node condition type used by the termination handler MHC
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Checker ¶
type Checker interface { Start(context.Context) error UpdateStatus(context.Context) error NeedDisableNHC() bool NeedIgnoreNode(*v1.Node) bool }
Checker provides functions for checking for conflicts with MachineHealthCheck
func NewMHCChecker ¶
func NewMHCChecker(mgr manager.Manager, caps cluster.Capabilities, mhcEvents chan<- event.GenericEvent) (Checker, error)
NewMHCChecker creates a new Checker
type DummyChecker ¶
type DummyChecker struct{}
DummyChecker can be used in non Openshift clusters or in tests Using NewMHCChecker is recommended though
func (DummyChecker) NeedDisableNHC ¶
func (d DummyChecker) NeedDisableNHC() bool
NeedDisableNHC always return false on non openshift clusters
func (DummyChecker) NeedIgnoreNode ¶
func (d DummyChecker) NeedIgnoreNode(node *v1.Node) bool
NeedIgnoreNode always return false on non openshift clusters
func (DummyChecker) Start ¶ added in v0.3.0
func (d DummyChecker) Start(_ context.Context) error
Start will start the component, no op on non openshift clusters
func (DummyChecker) UpdateStatus ¶ added in v0.3.0
func (d DummyChecker) UpdateStatus(_ context.Context) error
UpdateStatus always return no error on non openshift clusters
Click to show internal directories.
Click to hide internal directories.