package
0.37.0
Repository: https://github.com/extole/karpenter.git
Documentation: pkg.go.dev

# Functions

FailedToSchedule ensures that the kube-scheduler has seen this pod and has intentionally marked this pod with a condition, noting that it thinks that the pod can't schedule anywhere It does this by marking the pod status condition "PodScheduled" as "Unschedulable" Note that it's possible that other schedulers may be scheduling another pod and may have a different semantic (e.g.
No description provided by the author
HasPodAntiAffinity returns true if a non-empty PodAntiAffinity is defined in the pod spec.
HasRequiredPodAntiAffinity returns true if a non-empty PodAntiAffinity/RequiredDuringSchedulingIgnoredDuringExecution is defined in the pod spec.
IsActive checks if Karpenter should consider this pod as running by ensuring that the pod: - Isn't a terminal pod (Failed or Succeeded) - Isn't actively terminating.
IsDisruptable checks if a pod can be disrupted based on validating the `karpenter.sh/do-not-disrupt` annotation on the pod.
IsEvictable checks if a pod is evictable by Karpenter by ensuring that the pod: - Is an active pod (isn't terminal or actively terminating) - Doesn't tolerate the "karpenter.sh/disruption=disrupting" taint - Isn't a mirror pod (https://kubernetes.io/docs/tasks/configure-pod-container/static-pod/).
No description provided by the author
No description provided by the author
IsOwnedByNode returns true if the pod is a static pod owned by a specific node.
No description provided by the author
No description provided by the author
IsProvisionable checks if a pod needs to be scheduled to new capacity by Karpenter by ensuring that the pod: - Has been marked as "Unschedulable" in the PodScheduled reason by the kube-scheduler - Has not been bound to a node - Isn't currently preempting other pods on the cluster and about to schedule - Isn't owned by a DaemonSet - Isn't a mirror pod (https://kubernetes.io/docs/tasks/configure-pod-container/static-pod/).
IsReschedulable checks if a Karpenter should consider this pod when re-scheduling to new capacity by ensuring that the pod: - Is an active pod (isn't terminal or actively terminating) OR Is owned by a StatefulSet and Is Terminating - Isn't owned by a DaemonSet - Isn't a mirror pod (https://kubernetes.io/docs/tasks/configure-pod-container/static-pod/).
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
IsWaitingEviction checks if this is a pod that we are waiting to be removed from the node by ensuring that the pod: - Isn't a terminal pod (Failed or Succeeded) - Isn't a pod that has been terminating past its terminationGracePeriodSeconds - Doesn't tolerate the "karpenter.sh/disruption=disrupting" taint - Isn't a mirror pod (https://kubernetes.io/docs/tasks/configure-pod-container/static-pod/).
ToleratesDisruptionNoScheduleTaint returns true if the pod tolerates karpenter.sh/disruption:NoSchedule=Disrupting taint.