Documentation ¶
Index ¶
Constants ¶
View Source
const (
Name = "drainerinitializer"
)
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 ¶
func (*Resource) EnsureDeleted ¶
type ResourceConfig ¶
type ResourceConfig struct { ASG asg.Interface CtrlClient ctrlClient.Client Logger micrologger.Logger LabelMapFunc func(cr metav1.Object) map[string]string LifeCycleHookName string ToClusterFunc func(ctx context.Context, v interface{}) (infrastructurev1alpha3.AWSCluster, error) }
Click to show internal directories.
Click to hide internal directories.