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