Documentation ¶
Index ¶
- Variables
- type K8sClient
- func (c *K8sClient) CordonNode(node *corev1.Node) error
- func (c *K8sClient) DeleteNode(nodeName string) error
- func (c *K8sClient) DrainNode(node *corev1.Node) error
- func (c *K8sClient) GetNodes() NodeMap
- func (c *K8sClient) GetServerVersion() (*version.Info, error)
- func (c *K8sClient) SetNodeRoles(node *corev1.Node) error
- func (c *K8sClient) WaitUntilNoPodsPending() error
- func (c *K8sClient) WaitUntilNodeReady(nodeName string) (*corev1.Node, error)
- type NodeMap
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrTransientDrain = errors.New("server unable to handle drain request")
Functions ¶
This section is empty.
Types ¶
type K8sClient ¶
type K8sClient struct { Client *kubernetes.Clientset Drainer *drain.Helper // contains filtered or unexported fields }
Kubernetes client
func NewK8sClient ¶
func (*K8sClient) DeleteNode ¶
func (*K8sClient) WaitUntilNoPodsPending ¶
Click to show internal directories.
Click to hide internal directories.