api

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Oct 2, 2017 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const GroupName = "descheduler"

GroupName is the group name use in this package

Variables

View Source
var (
	SchemeBuilder = runtime.NewSchemeBuilder(addKnownTypes)
	AddToScheme   = SchemeBuilder.AddToScheme
)
View Source
var SchemeGroupVersion = schema.GroupVersion{Group: GroupName, Version: runtime.APIVersionInternal}

SchemeGroupVersion is group version used to register these objects

Functions

func DeepCopy_api_DeschedulerPolicy

func DeepCopy_api_DeschedulerPolicy(in interface{}, out interface{}, c *conversion.Cloner) error

DeepCopy_api_DeschedulerPolicy is an autogenerated deepcopy function.

func DeepCopy_api_DeschedulerStrategy

func DeepCopy_api_DeschedulerStrategy(in interface{}, out interface{}, c *conversion.Cloner) error

DeepCopy_api_DeschedulerStrategy is an autogenerated deepcopy function.

func DeepCopy_api_NodeResourceUtilizationThresholds

func DeepCopy_api_NodeResourceUtilizationThresholds(in interface{}, out interface{}, c *conversion.Cloner) error

DeepCopy_api_NodeResourceUtilizationThresholds is an autogenerated deepcopy function.

func DeepCopy_api_StrategyParameters

func DeepCopy_api_StrategyParameters(in interface{}, out interface{}, c *conversion.Cloner) error

DeepCopy_api_StrategyParameters is an autogenerated deepcopy function.

func Kind

func Kind(kind string) schema.GroupKind

Kind takes an unqualified kind and returns a Group qualified GroupKind

func RegisterDeepCopies

func RegisterDeepCopies(scheme *runtime.Scheme) error

RegisterDeepCopies adds deep-copy functions to the given scheme. Public to allow building arbitrary schemes.

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

	// Strategies
	Strategies StrategyList
}

func (*DeschedulerPolicy) CodecDecodeSelf

func (x *DeschedulerPolicy) CodecDecodeSelf(d *codec1978.Decoder)

func (*DeschedulerPolicy) CodecEncodeSelf

func (x *DeschedulerPolicy) CodecEncodeSelf(e *codec1978.Encoder)

type DeschedulerStrategy

type DeschedulerStrategy struct {
	// Enabled or disabled
	Enabled bool

	// Weight
	Weight int

	// Strategy parameters
	Params StrategyParameters
}

func (*DeschedulerStrategy) CodecDecodeSelf

func (x *DeschedulerStrategy) CodecDecodeSelf(d *codec1978.Decoder)

func (*DeschedulerStrategy) CodecEncodeSelf

func (x *DeschedulerStrategy) CodecEncodeSelf(e *codec1978.Encoder)

type NodeResourceUtilizationThresholds

type NodeResourceUtilizationThresholds struct {
	Thresholds       ResourceThresholds
	TargetThresholds ResourceThresholds
	NumberOfNodes    int
}

func (*NodeResourceUtilizationThresholds) CodecDecodeSelf

func (x *NodeResourceUtilizationThresholds) CodecDecodeSelf(d *codec1978.Decoder)

func (*NodeResourceUtilizationThresholds) CodecEncodeSelf

func (x *NodeResourceUtilizationThresholds) CodecEncodeSelf(e *codec1978.Encoder)

type Percentage

type Percentage float64

func (*Percentage) CodecDecodeSelf

func (x *Percentage) CodecDecodeSelf(d *codec1978.Decoder)

func (Percentage) CodecEncodeSelf

func (x Percentage) CodecEncodeSelf(e *codec1978.Encoder)

type ResourceThresholds

type ResourceThresholds map[v1.ResourceName]Percentage

func (*ResourceThresholds) CodecDecodeSelf

func (x *ResourceThresholds) CodecDecodeSelf(d *codec1978.Decoder)

func (ResourceThresholds) CodecEncodeSelf

func (x ResourceThresholds) CodecEncodeSelf(e *codec1978.Encoder)

type StrategyList

type StrategyList map[StrategyName]DeschedulerStrategy

func (*StrategyList) CodecDecodeSelf

func (x *StrategyList) CodecDecodeSelf(d *codec1978.Decoder)

func (StrategyList) CodecEncodeSelf

func (x StrategyList) CodecEncodeSelf(e *codec1978.Encoder)

type StrategyName

type StrategyName string

func (*StrategyName) CodecDecodeSelf

func (x *StrategyName) CodecDecodeSelf(d *codec1978.Decoder)

func (StrategyName) CodecEncodeSelf

func (x StrategyName) CodecEncodeSelf(e *codec1978.Encoder)

type StrategyParameters

type StrategyParameters struct {
	NodeResourceUtilizationThresholds NodeResourceUtilizationThresholds
}

Only one of its members may be specified

func (*StrategyParameters) CodecDecodeSelf

func (x *StrategyParameters) CodecDecodeSelf(d *codec1978.Decoder)

func (*StrategyParameters) CodecEncodeSelf

func (x *StrategyParameters) CodecEncodeSelf(e *codec1978.Encoder)

Directories

Path Synopsis
Package install installs the descheduler's policy API group.
Package install installs the descheduler's policy API group.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL