removepodsviolatingtopologyspreadconstraint

package
v0.30.1 Latest Latest
Warning

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

Go to latest
Published: Jun 5, 2024 License: Apache-2.0 Imports: 21 Imported by: 1

Documentation

Index

Constants

View Source
const PluginName = "RemovePodsViolatingTopologySpreadConstraint"

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_RemovePodsViolatingTopologySpreadConstraintArgs added in v0.26.0

func SetDefaults_RemovePodsViolatingTopologySpreadConstraintArgs(obj runtime.Object)

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

func ValidateRemovePodsViolatingTopologySpreadConstraintArgs added in v0.26.0

func ValidateRemovePodsViolatingTopologySpreadConstraintArgs(obj runtime.Object) error

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

nolint: gocyclo

func (*RemovePodsViolatingTopologySpreadConstraint) Name

Name retrieves the plugin name

type RemovePodsViolatingTopologySpreadConstraintArgs added in v0.26.0

type RemovePodsViolatingTopologySpreadConstraintArgs struct {
	metav1.TypeMeta `json:",inline"`

	Namespaces             *api.Namespaces                    `json:"namespaces"`
	LabelSelector          *metav1.LabelSelector              `json:"labelSelector"`
	Constraints            []v1.UnsatisfiableConstraintAction `json:"constraints"`
	TopologyBalanceNodeFit *bool                              `json:"topologyBalanceNodeFit"`
}

RemovePodsViolatingTopologySpreadConstraintArgs holds arguments used to configure RemovePodsViolatingTopologySpreadConstraint plugin.

func (*RemovePodsViolatingTopologySpreadConstraintArgs) DeepCopy added in v0.26.0

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RemovePodsViolatingTopologySpreadConstraintArgs.

func (*RemovePodsViolatingTopologySpreadConstraintArgs) DeepCopyInto added in v0.26.0

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

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