Documentation
¶
Index ¶
- Constants
- Variables
- func New(args runtime.Object, handle frameworktypes.Handle) (frameworktypes.Plugin, error)
- func RegisterDefaults(scheme *runtime.Scheme) error
- func SetDefaults_PodLifeTimeArgs(obj runtime.Object)
- func ValidatePodLifeTimeArgs(obj runtime.Object) error
- type PodLifeTime
- type PodLifeTimeArgs
Constants ¶
const PluginName = "PodLifeTime"
Variables ¶
var ( SchemeBuilder = runtime.NewSchemeBuilder() AddToScheme = localSchemeBuilder.AddToScheme )
Functions ¶
func New ¶
func New(args runtime.Object, handle frameworktypes.Handle) (frameworktypes.Plugin, error)
New builds plugin from its arguments while passing a handle
func RegisterDefaults ¶ added in v0.26.0
RegisterDefaults adds defaulters functions to the given scheme. Public to allow building arbitrary schemes. All generated defaulters are covering - they call all nested defaulters.
func SetDefaults_PodLifeTimeArgs ¶ added in v0.26.0
SetDefaults_PodLifeTimeArgs TODO: the final default values would be discussed in community
func ValidatePodLifeTimeArgs ¶ added in v0.26.0
ValidatePodLifeTimeArgs validates PodLifeTime arguments
Types ¶
type PodLifeTime ¶
type PodLifeTime struct {
// contains filtered or unexported fields
}
PodLifeTime evicts pods on the node that violate the max pod lifetime threshold
func (*PodLifeTime) Deschedule ¶
func (d *PodLifeTime) Deschedule(ctx context.Context, nodes []*v1.Node) *frameworktypes.Status
Deschedule extension point implementation for the plugin
type PodLifeTimeArgs ¶ added in v0.26.0
type PodLifeTimeArgs struct { metav1.TypeMeta `json:",inline"` Namespaces *api.Namespaces `json:"namespaces"` LabelSelector *metav1.LabelSelector `json:"labelSelector"` MaxPodLifeTimeSeconds *uint `json:"maxPodLifeTimeSeconds"` States []string `json:"states"` }
PodLifeTimeArgs holds arguments used to configure PodLifeTime plugin.
func (*PodLifeTimeArgs) DeepCopy ¶ added in v0.26.0
func (in *PodLifeTimeArgs) DeepCopy() *PodLifeTimeArgs
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PodLifeTimeArgs.
func (*PodLifeTimeArgs) DeepCopyInto ¶ added in v0.26.0
func (in *PodLifeTimeArgs) DeepCopyInto(out *PodLifeTimeArgs)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*PodLifeTimeArgs) DeepCopyObject ¶ added in v0.26.0
func (in *PodLifeTimeArgs) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.