mhc

package
v0.7.0 Latest Latest
Warning

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

Go to latest
Published: Feb 8, 2024 License: Apache-2.0 Imports: 7 Imported by: 0

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, onOpenshift bool, 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

Jump to

Keyboard shortcuts

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