removefailedpods

package
v0.29.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 23, 2023 License: Apache-2.0 Imports: 13 Imported by: 1

Documentation

Index

Constants

View Source
const PluginName = "RemoveFailedPods"

Variables

View Source
var (
	SchemeBuilder = runtime.NewSchemeBuilder()

	AddToScheme = localSchemeBuilder.AddToScheme
)

Functions

func New

New builds plugin from its arguments while passing a handle

func RegisterDefaults added in v0.26.0

func RegisterDefaults(scheme *runtime.Scheme) error

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

func SetDefaults_RemoveFailedPodsArgs(obj runtime.Object)

SetDefaults_RemoveFailedPodsArgs TODO: the final default values would be discussed in community

func ValidateRemoveFailedPodsArgs added in v0.26.0

func ValidateRemoveFailedPodsArgs(obj runtime.Object) error

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

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL