Documentation ¶
Index ¶
- Constants
- Variables
- func New(args runtime.Object, handle frameworktypes.Handle) (frameworktypes.Plugin, error)
- func RegisterDefaults(scheme *runtime.Scheme) error
- func SetDefaults_RemoveFailedPodsArgs(obj runtime.Object)
- func ValidateRemoveFailedPodsArgs(obj runtime.Object) error
- type RemoveFailedPods
- type RemoveFailedPodsArgs
Constants ¶
const PluginName = "RemoveFailedPods"
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_RemoveFailedPodsArgs ¶ added in v0.26.0
SetDefaults_RemoveFailedPodsArgs TODO: the final default values would be discussed in community
func ValidateRemoveFailedPodsArgs ¶ added in v0.26.0
ValidateRemoveFailedPodsArgs validates RemoveFailedPods arguments
Types ¶
type RemoveFailedPods ¶
type RemoveFailedPods struct {
// contains filtered or unexported fields
}
RemoveFailedPods evicts pods in failed status phase that match the given args criteria
func (*RemoveFailedPods) Deschedule ¶
func (d *RemoveFailedPods) Deschedule(ctx context.Context, nodes []*v1.Node) *frameworktypes.Status
Deschedule extension point implementation for the plugin
func (*RemoveFailedPods) Name ¶
func (d *RemoveFailedPods) Name() string
Name retrieves the plugin name
type RemoveFailedPodsArgs ¶ added in v0.26.0
type RemoveFailedPodsArgs struct { metav1.TypeMeta `json:",inline"` Namespaces *api.Namespaces `json:"namespaces"` LabelSelector *metav1.LabelSelector `json:"labelSelector"` ExcludeOwnerKinds []string `json:"excludeOwnerKinds"` MinPodLifetimeSeconds *uint `json:"minPodLifetimeSeconds"` Reasons []string `json:"reasons"` IncludingInitContainers bool `json:"includingInitContainers"` }
RemoveFailedPodsArgs holds arguments used to configure RemoveFailedPods plugin.
func (*RemoveFailedPodsArgs) DeepCopy ¶ added in v0.26.0
func (in *RemoveFailedPodsArgs) DeepCopy() *RemoveFailedPodsArgs
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RemoveFailedPodsArgs.
func (*RemoveFailedPodsArgs) DeepCopyInto ¶ added in v0.26.0
func (in *RemoveFailedPodsArgs) DeepCopyInto(out *RemoveFailedPodsArgs)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*RemoveFailedPodsArgs) DeepCopyObject ¶ added in v0.26.0
func (in *RemoveFailedPodsArgs) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.