mhc

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Feb 10, 2022 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 {
	NeedDisableNHC() (bool, error)
	NeedIgnoreNode(*v1.Node) bool
}

Checker provides functions for checking for conflicts with MachineHealthCheck - -

func NewMHCChecker

func NewMHCChecker(mgr manager.Manager) (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, error)

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

Jump to

Keyboard shortcuts

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