removepodsviolatinginterpodantiaffinity

package
v0.29.0 Latest Latest
Warning

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

Go to latest
Published: Dec 23, 2023 License: Apache-2.0 Imports: 12 Imported by: 2

Documentation

Index

Constants

View Source
const PluginName = "RemovePodsViolatingInterPodAntiAffinity"

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

func SetDefaults_RemovePodsViolatingInterPodAntiAffinityArgs(obj runtime.Object)

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

func ValidateRemovePodsViolatingInterPodAntiAffinityArgs added in v0.26.0

func ValidateRemovePodsViolatingInterPodAntiAffinityArgs(obj runtime.Object) error

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 (*RemovePodsViolatingInterPodAntiAffinity) Name

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

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

func (*RemovePodsViolatingInterPodAntiAffinityArgs) DeepCopyInto added in v0.26.0

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

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