Documentation
¶
Index ¶
- Constants
- Variables
- func IsNodeDrainError(err error) bool
- type NodeDrainError
- type Queue
- func (q *Queue) Add(node *corev1.Node, pods ...*corev1.Pod)
- func (q *Queue) Evict(ctx context.Context, key QueueKey) bool
- func (q *Queue) Has(node *corev1.Node, pod *corev1.Pod) bool
- func (q *Queue) Reconcile(ctx context.Context) (reconcile.Result, error)
- func (q *Queue) Register(_ context.Context, m manager.Manager) error
- type QueueKey
- type Terminator
Constants ¶
View Source
const (
// CodeLabel for eviction request
CodeLabel = "code"
)
Variables ¶
View Source
var NodesEvictionRequestsTotal = opmetrics.NewPrometheusCounter( crmetrics.Registry, prometheus.CounterOpts{ Namespace: metrics.Namespace, Subsystem: metrics.NodeSubsystem, Name: "eviction_requests_total", Help: "The total number of eviction requests made by Karpenter", }, []string{CodeLabel}, )
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.TypedRateLimitingInterface[QueueKey] // contains filtered or unexported fields }
func NewTestingQueue ¶ added in v1.1.0
type QueueKey ¶ added in v0.33.3
type QueueKey struct { types.NamespacedName UID types.UID // contains filtered or unexported fields }
type Terminator ¶
type Terminator struct {
// contains filtered or unexported fields
}
func NewTerminator ¶
func (*Terminator) DeleteExpiringPods ¶ added in v1.0.0
Click to show internal directories.
Click to hide internal directories.