drainer

package
v8.2.0 Latest Latest
Warning

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

Go to latest
Published: Jul 14, 2023 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsAlreadyCordoned

func IsAlreadyCordoned(err error) bool

func IsCannotEvictPod

func IsCannotEvictPod(err error) bool

func IsDrainTimeout

func IsDrainTimeout(err error) bool

IsDrainTimeout asserts drainTimeoutError.

func IsEvictionInProgress

func IsEvictionInProgress(err error) bool

func IsInvalidConfig

func IsInvalidConfig(err error) bool

IsInvalidConfig asserts invalidConfigError.

Types

type Config

type Config struct {
	Logger    micrologger.Logger
	WCClients k8sclient.Interface
}

type Drainer

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

func New

func New(config Config) (*Drainer, error)

func (*Drainer) CordonNode

func (d *Drainer) CordonNode(ctx context.Context, nodename string) error

func (*Drainer) DrainNode

func (d *Drainer) DrainNode(ctx context.Context, nodename string, timeout time.Duration) error

Jump to

Keyboard shortcuts

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