kubernetes

package
v0.1.0-beta.0 Latest Latest
Warning

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

Go to latest
Published: Jun 27, 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