Documentation ¶
Index ¶
- Constants
- Variables
- func New(args runtime.Object, handle frameworktypes.Handle) (frameworktypes.Plugin, error)
- func RegisterDefaults(scheme *runtime.Scheme) error
- func SetDefaults_RemovePodsViolatingTopologySpreadConstraintArgs(obj runtime.Object)
- func ValidateRemovePodsViolatingTopologySpreadConstraintArgs(obj runtime.Object) error
- type RemovePodsViolatingTopologySpreadConstraint
- type RemovePodsViolatingTopologySpreadConstraintArgs
- func (in *RemovePodsViolatingTopologySpreadConstraintArgs) DeepCopy() *RemovePodsViolatingTopologySpreadConstraintArgs
- func (in *RemovePodsViolatingTopologySpreadConstraintArgs) DeepCopyInto(out *RemovePodsViolatingTopologySpreadConstraintArgs)
- func (in *RemovePodsViolatingTopologySpreadConstraintArgs) DeepCopyObject() runtime.Object
Constants ¶
const PluginName = "RemovePodsViolatingTopologySpreadConstraint"
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_RemovePodsViolatingTopologySpreadConstraintArgs ¶ added in v0.26.0
SetDefaults_RemovePodsViolatingTopologySpreadConstraintArgs TODO: the final default values would be discussed in community
func ValidateRemovePodsViolatingTopologySpreadConstraintArgs ¶ added in v0.26.0
ValidateRemovePodsViolatingTopologySpreadConstraintArgs validates RemovePodsViolatingTopologySpreadConstraint arguments
Types ¶
type RemovePodsViolatingTopologySpreadConstraint ¶
type RemovePodsViolatingTopologySpreadConstraint struct {
// contains filtered or unexported fields
}
RemovePodsViolatingTopologySpreadConstraint evicts pods which violate their topology spread constraints
func (*RemovePodsViolatingTopologySpreadConstraint) Balance ¶
func (d *RemovePodsViolatingTopologySpreadConstraint) Balance(ctx context.Context, nodes []*v1.Node) *frameworktypes.Status
nolint: gocyclo
func (*RemovePodsViolatingTopologySpreadConstraint) Name ¶
func (d *RemovePodsViolatingTopologySpreadConstraint) Name() string
Name retrieves the plugin name
type RemovePodsViolatingTopologySpreadConstraintArgs ¶ added in v0.26.0
type RemovePodsViolatingTopologySpreadConstraintArgs struct { metav1.TypeMeta `json:",inline"` Namespaces *api.Namespaces `json:"namespaces,omitempty"` LabelSelector *metav1.LabelSelector `json:"labelSelector,omitempty"` Constraints []v1.UnsatisfiableConstraintAction `json:"constraints,omitempty"` TopologyBalanceNodeFit *bool `json:"topologyBalanceNodeFit,omitempty"` }
RemovePodsViolatingTopologySpreadConstraintArgs holds arguments used to configure RemovePodsViolatingTopologySpreadConstraint plugin.
func (*RemovePodsViolatingTopologySpreadConstraintArgs) DeepCopy ¶ added in v0.26.0
func (in *RemovePodsViolatingTopologySpreadConstraintArgs) DeepCopy() *RemovePodsViolatingTopologySpreadConstraintArgs
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RemovePodsViolatingTopologySpreadConstraintArgs.
func (*RemovePodsViolatingTopologySpreadConstraintArgs) DeepCopyInto ¶ added in v0.26.0
func (in *RemovePodsViolatingTopologySpreadConstraintArgs) DeepCopyInto(out *RemovePodsViolatingTopologySpreadConstraintArgs)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*RemovePodsViolatingTopologySpreadConstraintArgs) DeepCopyObject ¶ added in v0.26.0
func (in *RemovePodsViolatingTopologySpreadConstraintArgs) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.