drainer

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Jun 4, 2019 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Name = "drainerv23"
)

Variables

This section is empty.

Functions

func IsExecutionFailed

func IsExecutionFailed(err error) bool

IsExecutionFailed asserts executionFailedError.

func IsInvalidConfig

func IsInvalidConfig(err error) bool

IsInvalidConfig asserts invalidConfigError.

Types

type Resource

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

func NewResource

func NewResource(config ResourceConfig) (*Resource, error)

func (*Resource) EnsureCreated

func (r *Resource) EnsureCreated(ctx context.Context, obj interface{}) error

EnsureCreated creates DrainerConfigs for ASG instances in terminating/wait state then lets node-operator to do its job.

func (*Resource) EnsureDeleted

func (r *Resource) EnsureDeleted(ctx context.Context, obj interface{}) error

EnsureDeleted is a no-op, because the lifecycle resource only has to act on create and update events in order to drain guest cluster nodes.

func (*Resource) Name

func (r *Resource) Name() string

type ResourceConfig

type ResourceConfig struct {
	G8sClient versioned.Interface
	Logger    micrologger.Logger
}

type StackState

type StackState struct {
	Instances     []*autoscaling.Instance
	WorkerASGName string
}

Jump to

Keyboard shortcuts

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