k8sdrainer

package
v0.0.0-...-a9f80de Latest Latest
Warning

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

Go to latest
Published: Apr 30, 2021 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	CORDON = true
)

Variables

This section is empty.

Functions

This section is empty.

Types

type DrainHandler

type DrainHandler struct{}

func (*DrainHandler) Cordon

func (d *DrainHandler) Cordon(c k8sclient.Client, node *v1.Node) error

func (*DrainHandler) Drain

func (d *DrainHandler) Drain(c k8sclient.Client, node *v1.Node) error

type Drainer

type Drainer interface {
	Cordon(k8sclient.Client, *v1.Node) error
	Drain(k8sclient.Client, *v1.Node) error
}
var DefaultDrainer Drainer = &DrainHandler{}

Directories

Path Synopsis
Code generated by counterfeiter.
Code generated by counterfeiter.

Jump to

Keyboard shortcuts

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