Documentation ¶
Index ¶
- Constants
- Variables
- func New(args runtime.Object, handle frameworktypes.Handle) (frameworktypes.Plugin, error)
- func RegisterDefaults(scheme *runtime.Scheme) error
- func SetDefaults_RemoveDuplicatesArgs(obj runtime.Object)
- func ValidateRemoveDuplicatesArgs(obj runtime.Object) error
- type RemoveDuplicates
- type RemoveDuplicatesArgs
Constants ¶
const PluginName = "RemoveDuplicates"
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_RemoveDuplicatesArgs ¶ added in v0.26.0
SetDefaults_RemoveDuplicatesArgs TODO: the final default values would be discussed in community
func ValidateRemoveDuplicatesArgs ¶ added in v0.26.0
Types ¶
type RemoveDuplicates ¶
type RemoveDuplicates struct {
// contains filtered or unexported fields
}
func (*RemoveDuplicates) Balance ¶
func (r *RemoveDuplicates) Balance(ctx context.Context, nodes []*v1.Node) *frameworktypes.Status
Balance extension point implementation for the plugin
func (*RemoveDuplicates) Name ¶
func (r *RemoveDuplicates) Name() string
Name retrieves the plugin name
type RemoveDuplicatesArgs ¶ added in v0.26.0
type RemoveDuplicatesArgs struct { metav1.TypeMeta `json:",inline"` Namespaces *api.Namespaces `json:"namespaces,omitempty"` ExcludeOwnerKinds []string `json:"excludeOwnerKinds,omitempty"` }
func (*RemoveDuplicatesArgs) DeepCopy ¶ added in v0.26.0
func (in *RemoveDuplicatesArgs) DeepCopy() *RemoveDuplicatesArgs
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RemoveDuplicatesArgs.
func (*RemoveDuplicatesArgs) DeepCopyInto ¶ added in v0.26.0
func (in *RemoveDuplicatesArgs) DeepCopyInto(out *RemoveDuplicatesArgs)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*RemoveDuplicatesArgs) DeepCopyObject ¶ added in v0.26.0
func (in *RemoveDuplicatesArgs) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.