v1

package
v0.0.0-...-35ad561 Latest Latest
Warning

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

Go to latest
Published: Jan 9, 2018 License: Apache-2.0, Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

View Source
const GroupName = "autoscaling"

GroupName is the group name use in this package

Variables

View Source
var SchemeGroupVersion = unversioned.GroupVersion{Group: GroupName, Version: "v1"}

SchemeGroupVersion is group version used to register these objects

Functions

func AddToScheme

func AddToScheme(scheme *runtime.Scheme)

func Convert_api_ObjectMeta_To_v1_ObjectMeta

func Convert_api_ObjectMeta_To_v1_ObjectMeta(in *api.ObjectMeta, out *v1.ObjectMeta, s conversion.Scope) error

func Convert_extensions_HorizontalPodAutoscalerList_To_v1_HorizontalPodAutoscalerList

func Convert_extensions_HorizontalPodAutoscalerList_To_v1_HorizontalPodAutoscalerList(in *extensions.HorizontalPodAutoscalerList, out *HorizontalPodAutoscalerList, s conversion.Scope) error

func Convert_extensions_HorizontalPodAutoscalerSpec_To_v1_HorizontalPodAutoscalerSpec

func Convert_extensions_HorizontalPodAutoscalerSpec_To_v1_HorizontalPodAutoscalerSpec(in *extensions.HorizontalPodAutoscalerSpec, out *HorizontalPodAutoscalerSpec, s conversion.Scope) error

func Convert_extensions_HorizontalPodAutoscalerStatus_To_v1_HorizontalPodAutoscalerStatus

func Convert_extensions_HorizontalPodAutoscalerStatus_To_v1_HorizontalPodAutoscalerStatus(in *extensions.HorizontalPodAutoscalerStatus, out *HorizontalPodAutoscalerStatus, s conversion.Scope) error

func Convert_extensions_HorizontalPodAutoscaler_To_v1_HorizontalPodAutoscaler

func Convert_extensions_HorizontalPodAutoscaler_To_v1_HorizontalPodAutoscaler(in *extensions.HorizontalPodAutoscaler, out *HorizontalPodAutoscaler, s conversion.Scope) error

func Convert_extensions_SubresourceReference_To_v1_CrossVersionObjectReference

func Convert_extensions_SubresourceReference_To_v1_CrossVersionObjectReference(in *extensions.SubresourceReference, out *CrossVersionObjectReference, s conversion.Scope) error

func Convert_v1_CrossVersionObjectReference_To_extensions_SubresourceReference

func Convert_v1_CrossVersionObjectReference_To_extensions_SubresourceReference(in *CrossVersionObjectReference, out *extensions.SubresourceReference, s conversion.Scope) error

func Convert_v1_HorizontalPodAutoscalerList_To_extensions_HorizontalPodAutoscalerList

func Convert_v1_HorizontalPodAutoscalerList_To_extensions_HorizontalPodAutoscalerList(in *HorizontalPodAutoscalerList, out *extensions.HorizontalPodAutoscalerList, s conversion.Scope) error

func Convert_v1_HorizontalPodAutoscalerSpec_To_extensions_HorizontalPodAutoscalerSpec

func Convert_v1_HorizontalPodAutoscalerSpec_To_extensions_HorizontalPodAutoscalerSpec(in *HorizontalPodAutoscalerSpec, out *extensions.HorizontalPodAutoscalerSpec, s conversion.Scope) error

func Convert_v1_HorizontalPodAutoscalerStatus_To_extensions_HorizontalPodAutoscalerStatus

func Convert_v1_HorizontalPodAutoscalerStatus_To_extensions_HorizontalPodAutoscalerStatus(in *HorizontalPodAutoscalerStatus, out *extensions.HorizontalPodAutoscalerStatus, s conversion.Scope) error

func Convert_v1_HorizontalPodAutoscaler_To_extensions_HorizontalPodAutoscaler

func Convert_v1_HorizontalPodAutoscaler_To_extensions_HorizontalPodAutoscaler(in *HorizontalPodAutoscaler, out *extensions.HorizontalPodAutoscaler, s conversion.Scope) error

func Convert_v1_ObjectMeta_To_api_ObjectMeta

func Convert_v1_ObjectMeta_To_api_ObjectMeta(in *v1.ObjectMeta, out *api.ObjectMeta, s conversion.Scope) error

Types

type CrossVersionObjectReference

type CrossVersionObjectReference struct {
	// Kind of the referent; More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds"
	Kind string `json:"kind"`
	// Name of the referent; More info: http://releases.k8s.io/HEAD/docs/user-guide/identifiers.md#names
	Name string `json:"name"`
	// API version of the referent
	APIVersion string `json:"apiVersion,omitempty"`
}

CrossVersionObjectReference contains enough information to let you identify the referred resource.

func (*CrossVersionObjectReference) CodecDecodeSelf

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

func (*CrossVersionObjectReference) CodecEncodeSelf

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

func (CrossVersionObjectReference) SwaggerDoc

func (CrossVersionObjectReference) SwaggerDoc() map[string]string

type HorizontalPodAutoscaler

type HorizontalPodAutoscaler struct {
	unversioned.TypeMeta `json:",inline"`
	// Standard object metadata. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata
	v1.ObjectMeta `json:"metadata,omitempty"`

	// behaviour of autoscaler. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#spec-and-status.
	Spec HorizontalPodAutoscalerSpec `json:"spec,omitempty"`

	// current information about the autoscaler.
	Status HorizontalPodAutoscalerStatus `json:"status,omitempty"`
}

configuration of a horizontal pod autoscaler.

func (*HorizontalPodAutoscaler) CodecDecodeSelf

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

func (*HorizontalPodAutoscaler) CodecEncodeSelf

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

func (*HorizontalPodAutoscaler) GetObjectKind

func (obj *HorizontalPodAutoscaler) GetObjectKind() unversioned.ObjectKind

func (HorizontalPodAutoscaler) SwaggerDoc

func (HorizontalPodAutoscaler) SwaggerDoc() map[string]string

type HorizontalPodAutoscalerList

type HorizontalPodAutoscalerList struct {
	unversioned.TypeMeta `json:",inline"`
	// Standard list metadata.
	unversioned.ListMeta `json:"metadata,omitempty"`

	// list of horizontal pod autoscaler objects.
	Items []HorizontalPodAutoscaler `json:"items"`
}

list of horizontal pod autoscaler objects.

func (*HorizontalPodAutoscalerList) CodecDecodeSelf

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

func (*HorizontalPodAutoscalerList) CodecEncodeSelf

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

func (*HorizontalPodAutoscalerList) GetObjectKind

func (obj *HorizontalPodAutoscalerList) GetObjectKind() unversioned.ObjectKind

func (HorizontalPodAutoscalerList) SwaggerDoc

func (HorizontalPodAutoscalerList) SwaggerDoc() map[string]string

type HorizontalPodAutoscalerSpec

type HorizontalPodAutoscalerSpec struct {
	// reference to scaled resource; horizontal pod autoscaler will learn the current resource consumption
	// and will set the desired number of pods by using its Scale subresource.
	ScaleTargetRef CrossVersionObjectReference `json:"scaleTargetRef"`
	// lower limit for the number of pods that can be set by the autoscaler, default 1.
	MinReplicas *int32 `json:"minReplicas,omitempty"`
	// upper limit for the number of pods that can be set by the autoscaler; cannot be smaller than MinReplicas.
	MaxReplicas int32 `json:"maxReplicas"`
	// target average CPU utilization (represented as a percentage of requested CPU) over all the pods;
	TargetCPUUtilizationPercentage *int32 `json:"targetCPUUtilizationPercentage,omitempty"`
}

specification of a horizontal pod autoscaler.

func (*HorizontalPodAutoscalerSpec) CodecDecodeSelf

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

func (*HorizontalPodAutoscalerSpec) CodecEncodeSelf

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

func (HorizontalPodAutoscalerSpec) SwaggerDoc

func (HorizontalPodAutoscalerSpec) SwaggerDoc() map[string]string

type HorizontalPodAutoscalerStatus

type HorizontalPodAutoscalerStatus struct {
	// most recent generation observed by this autoscaler.
	ObservedGeneration *int64 `json:"observedGeneration,omitempty"`

	// last time the HorizontalPodAutoscaler scaled the number of pods;
	// used by the autoscaler to control how often the number of pods is changed.
	LastScaleTime *unversioned.Time `json:"lastScaleTime,omitempty"`

	// current number of replicas of pods managed by this autoscaler.
	CurrentReplicas int32 `json:"currentReplicas"`

	// desired number of replicas of pods managed by this autoscaler.
	DesiredReplicas int32 `json:"desiredReplicas"`

	// current average CPU utilization over all pods, represented as a percentage of requested CPU,
	// e.g. 70 means that an average pod is using now 70% of its requested CPU.
	CurrentCPUUtilizationPercentage *int32 `json:"currentCPUUtilizationPercentage,omitempty"`
}

current status of a horizontal pod autoscaler

func (*HorizontalPodAutoscalerStatus) CodecDecodeSelf

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

func (*HorizontalPodAutoscalerStatus) CodecEncodeSelf

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

func (HorizontalPodAutoscalerStatus) SwaggerDoc

func (HorizontalPodAutoscalerStatus) SwaggerDoc() map[string]string

Jump to

Keyboard shortcuts

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