drain

package
v0.2.5 Latest Latest
Warning

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

Go to latest
Published: Mar 30, 2021 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DefaultTimeOut = 1 * time.Minute

DefaultTimeOut is the default duration Drain will wait for pods to be evicted before erroring. This value will be used if Params.TimeOut is not provided.

Functions

func Drain

func Drain(node *corev1.Node, clientSet kubernetes.Interface, params Params) error

Drain drains the provided node.

Types

type Params

type Params struct {
	Force               bool
	DeleteEmptyDirData  bool
	IgnoreAllDaemonSets bool
	TimeOut             time.Duration
}

Params groups required inputs to drain a Kubernetes node.

Jump to

Keyboard shortcuts

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