Documentation ¶
Index ¶
- Constants
- Variables
- func Kind(kind string) schema.GroupKind
- func Resource(resource string) schema.GroupResource
- type DeschedulerPolicy
- type DeschedulerProfile
- type MetricsCollector
- type Namespaces
- type Percentage
- type PluginConfig
- type PluginSet
- type Plugins
- type PriorityThreshold
- type ResourceThresholds
Constants ¶
const GroupName = "descheduler"
GroupName is the group name use in this package
Variables ¶
var ( SchemeBuilder = runtime.NewSchemeBuilder(addKnownTypes) AddToScheme = SchemeBuilder.AddToScheme Scheme = runtime.NewScheme() )
var SchemeGroupVersion = schema.GroupVersion{Group: GroupName, Version: runtime.APIVersionInternal}
SchemeGroupVersion is group version used to register these objects
Functions ¶
func Resource ¶
func Resource(resource string) schema.GroupResource
Resource takes an unqualified resource and returns a Group qualified GroupResource
Types ¶
type DeschedulerPolicy ¶
type DeschedulerPolicy struct { metav1.TypeMeta // Profiles Profiles []DeschedulerProfile // NodeSelector for a set of nodes to operate over NodeSelector *string // MaxNoOfPodsToEvictPerNode restricts maximum of pods to be evicted per node. MaxNoOfPodsToEvictPerNode *uint // MaxNoOfPodsToEvictPerNamespace restricts maximum of pods to be evicted per namespace. MaxNoOfPodsToEvictPerNamespace *uint // MaxNoOfPodsToTotal restricts maximum of pods to be evicted total. MaxNoOfPodsToEvictTotal *uint // EvictionFailureEventNotification should be set to true to enable eviction failure event notification. // Default is false. EvictionFailureEventNotification *bool // MetricsCollector configures collection of metrics about actual resource utilization MetricsCollector MetricsCollector }
func (*DeschedulerPolicy) DeepCopy ¶ added in v0.4.0
func (in *DeschedulerPolicy) DeepCopy() *DeschedulerPolicy
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DeschedulerPolicy.
func (*DeschedulerPolicy) DeepCopyInto ¶ added in v0.4.0
func (in *DeschedulerPolicy) DeepCopyInto(out *DeschedulerPolicy)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*DeschedulerPolicy) DeepCopyObject ¶ added in v0.4.0
func (in *DeschedulerPolicy) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type DeschedulerProfile ¶ added in v0.27.0
type DeschedulerProfile struct { Name string PluginConfigs []PluginConfig Plugins Plugins }
func SortDeschedulerProfileByName ¶ added in v0.27.0
func SortDeschedulerProfileByName(profiles []DeschedulerProfile) []DeschedulerProfile
func (*DeschedulerProfile) DeepCopy ¶ added in v0.27.0
func (in *DeschedulerProfile) DeepCopy() *DeschedulerProfile
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DeschedulerProfile.
func (*DeschedulerProfile) DeepCopyInto ¶ added in v0.27.0
func (in *DeschedulerProfile) DeepCopyInto(out *DeschedulerProfile)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type MetricsCollector ¶ added in v0.32.0
type MetricsCollector struct { // Enabled metrics collection from kubernetes metrics. // Later, the collection can be extended to other providers. Enabled bool }
MetricsCollector configures collection of metrics about actual resource utilization
func (*MetricsCollector) DeepCopy ¶ added in v0.32.0
func (in *MetricsCollector) DeepCopy() *MetricsCollector
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MetricsCollector.
func (*MetricsCollector) DeepCopyInto ¶ added in v0.32.0
func (in *MetricsCollector) DeepCopyInto(out *MetricsCollector)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type Namespaces ¶ added in v0.19.0
type Namespaces struct { Include []string `json:"include,omitempty"` Exclude []string `json:"exclude,omitempty"` }
Namespaces carries a list of included/excluded namespaces for which a given strategy is applicable
func (*Namespaces) DeepCopy ¶ added in v0.19.0
func (in *Namespaces) DeepCopy() *Namespaces
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Namespaces.
func (*Namespaces) DeepCopyInto ¶ added in v0.19.0
func (in *Namespaces) DeepCopyInto(out *Namespaces)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type Percentage ¶
type Percentage float64
type PluginConfig ¶ added in v0.26.0
func (*PluginConfig) DeepCopy ¶ added in v0.26.0
func (in *PluginConfig) DeepCopy() *PluginConfig
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PluginConfig.
func (*PluginConfig) DeepCopyInto ¶ added in v0.26.0
func (in *PluginConfig) DeepCopyInto(out *PluginConfig)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type PluginSet ¶ added in v0.26.0
func (*PluginSet) DeepCopy ¶ added in v0.26.0
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PluginSet.
func (*PluginSet) DeepCopyInto ¶ added in v0.26.0
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type Plugins ¶ added in v0.26.0
type Plugins struct { PreSort PluginSet Sort PluginSet Deschedule PluginSet Balance PluginSet Filter PluginSet PreEvictionFilter PluginSet }
func (*Plugins) DeepCopy ¶ added in v0.26.0
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Plugins.
func (*Plugins) DeepCopyInto ¶ added in v0.26.0
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type PriorityThreshold ¶ added in v0.25.0
func (*PriorityThreshold) DeepCopy ¶ added in v0.25.0
func (in *PriorityThreshold) DeepCopy() *PriorityThreshold
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PriorityThreshold.
func (*PriorityThreshold) DeepCopyInto ¶ added in v0.25.0
func (in *PriorityThreshold) DeepCopyInto(out *PriorityThreshold)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ResourceThresholds ¶
type ResourceThresholds map[v1.ResourceName]Percentage
func (ResourceThresholds) DeepCopy ¶ added in v0.10.0
func (in ResourceThresholds) DeepCopy() ResourceThresholds
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ResourceThresholds.
func (ResourceThresholds) DeepCopyInto ¶ added in v0.10.0
func (in ResourceThresholds) DeepCopyInto(out *ResourceThresholds)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.