Documentation ¶
Index ¶
- func IsNodeDrainError(err error) bool
- type NodeDrainError
- type Queue
- func (q *Queue) Add(pods ...*v1.Pod)
- func (q *Queue) Builder(_ context.Context, m manager.Manager) controller.Builder
- func (q *Queue) Evict(ctx context.Context, key QueueKey) bool
- func (q *Queue) Has(pod *v1.Pod) bool
- func (q *Queue) Name() string
- func (q *Queue) Reconcile(ctx context.Context, _ reconcile.Request) (reconcile.Result, error)
- func (q *Queue) Reset()
- type QueueKey
- type Terminator
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 not 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) Drain ¶
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 []*v1.Pod)
Click to show internal directories.
Click to hide internal directories.