Documentation ¶
Index ¶
Constants ¶
View Source
const (
Name = "drainfinisher"
)
Variables ¶
This section is empty.
Functions ¶
func IsInvalidConfig ¶
IsInvalidConfig asserts invalidConfigError.
func IsNoActiveLifecycleAction ¶
IsNoActiveLifecycleAction asserts noActiveLifecycleActionError. It also checks for some string matching in the error message to figure if the AWS API gives the error we expect.
Types ¶
type Resource ¶
type Resource struct {
// contains filtered or unexported fields
}
func NewResource ¶
func NewResource(config ResourceConfig) (*Resource, error)
func (*Resource) EnsureCreated ¶
EnsureCreated completes ASG lifecycle hooks for nodes drained by node-operator, and then deletes drained DrainerConfigs.
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 }
Click to show internal directories.
Click to hide internal directories.