mhc

package
v0.4.1 Latest Latest
Warning

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

Go to latest
Published: Apr 12, 2023 License: Apache-2.0 Imports: 6 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() 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) (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(ctx 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() 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