Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewErrorDrainIsLocked ¶
func NewErrorDrainIsLocked() error
func NewErrorFailedToEvictAllPods ¶
func NewErrorFailedToEvictAllPods() error
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
func NewClient ¶
Create a new kubernetes client, defaults to in-cluster if no kubeconfig is provided
func NewFakeClient ¶
Create a test client with a fake kubernetes clientset
func (*Client) DrainNode ¶
Drain a node from all pods and set it to unschedulable. Status will be tracked in lease, only one drain will be run at a time.
func (*Client) FindNodeByZincatiID ¶
Find the node in the cluster with the matching machine id
type ErrorDrainIsLocked ¶
type ErrorDrainIsLocked struct{}
func (ErrorDrainIsLocked) Error ¶
func (e ErrorDrainIsLocked) Error() string
type ErrorFailedToEvictAllPods ¶
type ErrorFailedToEvictAllPods struct{}
func (ErrorFailedToEvictAllPods) Error ¶
func (e ErrorFailedToEvictAllPods) Error() string
Click to show internal directories.
Click to hide internal directories.