Documentation ¶
Index ¶
Constants ¶
View Source
const (
Name = "drainerv22"
)
Variables ¶
This section is empty.
Functions ¶
func IsExecutionFailed ¶
IsExecutionFailed asserts executionFailedError.
func IsInvalidConfig ¶
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 ¶
EnsureCreated creates DrainerConfigs for ASG instances in terminating/wait state then lets node-operator to do its job.
func (*Resource) EnsureDeleted ¶
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.
type ResourceConfig ¶
type ResourceConfig struct { G8sClient versioned.Interface Logger micrologger.Logger }
type StackState ¶
type StackState struct { Instances []*autoscaling.Instance WorkerASGName string }
Click to show internal directories.
Click to hide internal directories.