Documentation ¶
Index ¶
- func IsNodeDrainError(err error) bool
- type NodeDrainError
- type Queue
- func (q *Queue) Add(pods ...*corev1.Pod)
- func (q *Queue) Evict(ctx context.Context, key QueueKey) bool
- func (q *Queue) Has(pod *corev1.Pod) bool
- func (q *Queue) Reconcile(ctx context.Context) (reconcile.Result, error)
- func (q *Queue) Register(_ context.Context, m manager.Manager) error
- func (q *Queue) Reset()
- type QueueKey
- type Terminator
- func (t *Terminator) DeleteExpiringPods(ctx context.Context, pods []*corev1.Pod, ...) error
- func (t *Terminator) Drain(ctx context.Context, node *corev1.Node, ...) error
- func (t *Terminator) Evict(pods []*corev1.Pod)
- func (t *Terminator) EvictInOrder(pods ...[]*corev1.Pod)
- func (t *Terminator) Taint(ctx context.Context, node *corev1.Node, taint corev1.Taint) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func IsNodeDrainError ¶
Types ¶
type NodeDrainError ¶
type NodeDrainError struct {
// contains filtered or unexported fields
}
func NewNodeDrainError ¶
func NewNodeDrainError(err error) *NodeDrainError
type Queue ¶
type Queue struct { workqueue.RateLimitingInterface // contains filtered or unexported fields }
func (*Queue) Evict ¶
Evict returns true if successful eviction call, and false if there was an eviction-related error
type QueueKey ¶ added in v0.33.3
type QueueKey struct { types.NamespacedName UID types.UID }
func NewQueueKey ¶ added in v0.33.3
type Terminator ¶
type Terminator struct {
// contains filtered or unexported fields
}
func NewTerminator ¶
func (*Terminator) DeleteExpiringPods ¶ added in v1.0.0
func (*Terminator) Drain ¶
func (t *Terminator) Drain(ctx context.Context, node *corev1.Node, nodeGracePeriodExpirationTime *time.Time) error
Drain evicts pods from the node and returns true when all pods are evicted https://kubernetes.io/docs/concepts/architecture/nodes/#graceful-node-shutdown
func (*Terminator) Evict ¶
func (t *Terminator) Evict(pods []*corev1.Pod)
func (*Terminator) EvictInOrder ¶ added in v1.0.0
func (t *Terminator) EvictInOrder(pods ...[]*corev1.Pod)
Click to show internal directories.
Click to hide internal directories.