common

package
v1.22.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsAllowedKind

func IsAllowedKind(kind string, allowedKinds ...string) bool

Types

type Handler

type Handler struct {
	InterruptionEventStore *interruptioneventstore.Store
	Node                   node.Node
	NthConfig              config.Config
	Metrics                observability.Metrics
	Recorder               observability.K8sEventRecorder
}

func (*Handler) GetNodeName

func (h *Handler) GetNodeName(drainEvent *monitor.InterruptionEvent) (string, error)

func (*Handler) RunPostDrainTask

func (h *Handler) RunPostDrainTask(nodeName string, drainEvent *monitor.InterruptionEvent)

func (*Handler) RunPreDrainTask

func (h *Handler) RunPreDrainTask(nodeName string, drainEvent *monitor.InterruptionEvent)

Jump to

Keyboard shortcuts

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