Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DrainTask ¶
type DrainTask func(InterruptionEvent, node.Node) error
DrainTask defines a task to be run when draining a node
type InterruptionEvent ¶
type InterruptionEvent struct {
EventID string
Kind string
Description string
State string
AutoScalingGroupName string
NodeName string
NodeLabels map[string]string
Pods []string
InstanceID string
ProviderID string
IsManaged bool
StartTime time.Time
EndTime time.Time
NodeProcessed bool
InProgress bool
PreDrainTask DrainTask `json:"-"`
PostDrainTask DrainTask `json:"-"`
}
InterruptionEvent gives more context of the interruption event
func (*InterruptionEvent) IsRebalanceRecommendation ¶ added in v1.10.0
func (e *InterruptionEvent) IsRebalanceRecommendation() bool
IsRebalanceRecommendation returns true if the interruption event is a rebalance recommendation
func (*InterruptionEvent) TimeUntilEvent ¶
func (e *InterruptionEvent) TimeUntilEvent() time.Duration
TimeUntilEvent returns the duration until the event start time
Click to show internal directories.
Click to hide internal directories.