Documentation ¶
Index ¶
Constants ¶
const (
PluginName = "DefaultEvictor"
)
Variables ¶
This section is empty.
Functions ¶
func HaveEvictAnnotation ¶
HaveEvictAnnotation checks if the pod have evict annotation
func IsPodEvictableBasedOnPriority ¶
IsPodEvictableBasedOnPriority checks if the given pod is evictable based on priority resolved from pod Spec.
Types ¶
type DefaultEvictor ¶
type DefaultEvictor struct {
// contains filtered or unexported fields
}
DefaultEvictor is the first EvictorPlugin, which defines the default extension points of the pre-baked evictor that is shipped. Even though we name this plugin DefaultEvictor, it does not actually evict anything, This plugin is only meant to customize other actions (extension points) of the evictor, like filtering, sorting, and other ones that might be relevant in the future
type DefaultEvictorArgs ¶
type DefaultEvictorArgs struct { metav1.TypeMeta NodeSelector string EvictLocalStoragePods bool EvictSystemCriticalPods bool IgnorePvcPods bool EvictFailedBarePods bool LabelSelector labels.Selector PriorityThreshold *api.PriorityThreshold NodeFit bool }
DefaultEvictorArgs holds arguments used to configure DefaultEvictor plugin.
func (*DefaultEvictorArgs) DeepCopy ¶
func (in *DefaultEvictorArgs) DeepCopy() *DefaultEvictorArgs
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DefaultEvictorArgs.
func (*DefaultEvictorArgs) DeepCopyInto ¶
func (in *DefaultEvictorArgs) DeepCopyInto(out *DefaultEvictorArgs)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*DefaultEvictorArgs) DeepCopyObject ¶
func (in *DefaultEvictorArgs) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.