Documentation
¶
Index ¶
- func IsAllowedKind(kind string, allowedKinds ...string) bool
- type Handler
- func (h *Handler) GetNodeName(drainEvent *monitor.InterruptionEvent) (string, error)
- func (h *Handler) RunCancelDrainTask(nodeName string, drainEvent *monitor.InterruptionEvent)
- func (h *Handler) RunPostDrainTask(nodeName string, drainEvent *monitor.InterruptionEvent)
- func (h *Handler) RunPreDrainTask(nodeName string, drainEvent *monitor.InterruptionEvent)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func IsAllowedKind ¶
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) RunCancelDrainTask ¶ added in v1.25.2
func (h *Handler) RunCancelDrainTask(nodeName string, drainEvent *monitor.InterruptionEvent)
func (*Handler) RunPostDrainTask ¶
func (h *Handler) RunPostDrainTask(nodeName string, drainEvent *monitor.InterruptionEvent)
func (*Handler) RunPreDrainTask ¶
func (h *Handler) RunPreDrainTask(nodeName string, drainEvent *monitor.InterruptionEvent)
Click to show internal directories.
Click to hide internal directories.