handler

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Aug 23, 2023 License: Apache-2.0 Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Handler

type Handler struct {
	// contains filtered or unexported fields
}

Handler encapsulates the logic of the eviction loop

func NewHandler

func NewHandler(appContext *utils.AppContext) *Handler

NewHandler returns a new Handler for the given application context

func (*Handler) GetPodsForNode

func (h *Handler) GetPodsForNode(node v1.Node) ([]v1.Pod, error)

GetPodsForNode returns all eligible for evict pods from a specific node

func (*Handler) Run

func (h *Handler) Run() error

Run starts an eviction loop

Jump to

Keyboard shortcuts

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