Documentation ¶
Index ¶
- Constants
- Variables
- func New(args runtime.Object, handle frameworktypes.Handle) (frameworktypes.Plugin, error)
- func RegisterDefaults(scheme *runtime.Scheme) error
- func SetDefaults_RemovePodsViolatingNodeTaintsArgs(obj runtime.Object)
- func ValidateRemovePodsViolatingNodeTaintsArgs(obj runtime.Object) error
- type RemovePodsViolatingNodeTaints
- type RemovePodsViolatingNodeTaintsArgs
Constants ¶
const PluginName = "RemovePodsViolatingNodeTaints"
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_RemovePodsViolatingNodeTaintsArgs ¶ added in v0.26.0
SetDefaults_RemovePodsViolatingNodeTaintsArgs TODO: the final default values would be discussed in community
func ValidateRemovePodsViolatingNodeTaintsArgs ¶ added in v0.26.0
ValidateRemovePodsViolatingNodeTaintsArgs validates RemovePodsViolatingNodeTaints arguments
Types ¶
type RemovePodsViolatingNodeTaints ¶
type RemovePodsViolatingNodeTaints struct {
// contains filtered or unexported fields
}
RemovePodsViolatingNodeTaints evicts pods on the node which violate NoSchedule Taints on nodes
func (*RemovePodsViolatingNodeTaints) Deschedule ¶
func (d *RemovePodsViolatingNodeTaints) Deschedule(ctx context.Context, nodes []*v1.Node) *frameworktypes.Status
Deschedule extension point implementation for the plugin
func (*RemovePodsViolatingNodeTaints) Name ¶
func (d *RemovePodsViolatingNodeTaints) Name() string
Name retrieves the plugin name
type RemovePodsViolatingNodeTaintsArgs ¶ added in v0.26.0
type RemovePodsViolatingNodeTaintsArgs struct { metav1.TypeMeta `json:",inline"` Namespaces *api.Namespaces `json:"namespaces,omitempty"` LabelSelector *metav1.LabelSelector `json:"labelSelector,omitempty"` IncludePreferNoSchedule bool `json:"includePreferNoSchedule,omitempty"` ExcludedTaints []string `json:"excludedTaints,omitempty"` IncludedTaints []string `json:"includedTaints,omitempty"` }
RemovePodsViolatingNodeTaintsArgs holds arguments used to configure the RemovePodsViolatingNodeTaints plugin.
func (*RemovePodsViolatingNodeTaintsArgs) DeepCopy ¶ added in v0.26.0
func (in *RemovePodsViolatingNodeTaintsArgs) DeepCopy() *RemovePodsViolatingNodeTaintsArgs
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RemovePodsViolatingNodeTaintsArgs.
func (*RemovePodsViolatingNodeTaintsArgs) DeepCopyInto ¶ added in v0.26.0
func (in *RemovePodsViolatingNodeTaintsArgs) DeepCopyInto(out *RemovePodsViolatingNodeTaintsArgs)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*RemovePodsViolatingNodeTaintsArgs) DeepCopyObject ¶ added in v0.26.0
func (in *RemovePodsViolatingNodeTaintsArgs) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.