drainer

package
v0.0.0-...-5e3b14e Latest Latest
Warning

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

Go to latest
Published: Oct 21, 2019 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsErrNodeNotAvailable

func IsErrNodeNotAvailable(err error) bool

Types

type Drainer

type Drainer struct {
	Clientset     kubernetes.Interface
	TaintInit     *corev1.Taint
	TaintShutdown *corev1.Taint
	Wait          bool
}

func NewDrainer

func NewDrainer(clientset kubernetes.Interface) *Drainer

func (*Drainer) Drain

func (d *Drainer) Drain(nodeName string) (int, error)

type ErrNodeNotAvailable

type ErrNodeNotAvailable string

func (ErrNodeNotAvailable) Error

func (err ErrNodeNotAvailable) Error() string

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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