kubernetes

package
v0.2.0-alpha.1 Latest Latest
Warning

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

Go to latest
Published: Jul 5, 2019 License: MPL-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Helper

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

Helper represents a set of helper methods for interacting with the Kubernetes API.

func NewHelper

func NewHelper() (helper *Helper, err error)

NewHelper initializes and returns a Helper.

func (*Helper) Cordon

func (h *Helper) Cordon(name string) error

Cordon marks a node as unschedulable.

func (*Helper) CordonAndDrain

func (h *Helper) CordonAndDrain(node string) (err error)

CordonAndDrain cordons and drains a node in one call.

func (*Helper) Drain

func (h *Helper) Drain(node string) error

Drain evicts all pods on a given node.

func (*Helper) Uncordon

func (h *Helper) Uncordon(name string) error

Uncordon marks a node as schedulable.

Jump to

Keyboard shortcuts

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