Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { Client kubernetes.Interface Logger *logrus.Logger }
Config configures a Drainer.
type Drainer ¶
type Drainer interface { // Drain cordons a node and evicts its Pods. Drain(ctx context.Context, node string) error // Cordon marks a Kubernetes Node as unschedulable. Cordon(ctx context.Context, node string) error // Uncordon marks a Kubernetes Node as schedulable. Uncordon(ctx context.Context, node string) error }
Drainer manages cordoning nodes and evicting Pods.
Click to show internal directories.
Click to hide internal directories.