Documentation
¶
Index ¶
- Constants
- Variables
- func AddToScheme(scheme *runtime.Scheme)
- func DeepCopy_autoscaling_CrossVersionObjectReference(in CrossVersionObjectReference, out *CrossVersionObjectReference, ...) error
- func DeepCopy_autoscaling_HorizontalPodAutoscaler(in HorizontalPodAutoscaler, out *HorizontalPodAutoscaler, c *conversion.Cloner) error
- func DeepCopy_autoscaling_HorizontalPodAutoscalerList(in HorizontalPodAutoscalerList, out *HorizontalPodAutoscalerList, ...) error
- func DeepCopy_autoscaling_HorizontalPodAutoscalerSpec(in HorizontalPodAutoscalerSpec, out *HorizontalPodAutoscalerSpec, ...) error
- func DeepCopy_autoscaling_HorizontalPodAutoscalerStatus(in HorizontalPodAutoscalerStatus, out *HorizontalPodAutoscalerStatus, ...) error
- func DeepCopy_autoscaling_Scale(in Scale, out *Scale, c *conversion.Cloner) error
- func DeepCopy_autoscaling_ScaleSpec(in ScaleSpec, out *ScaleSpec, c *conversion.Cloner) error
- func DeepCopy_autoscaling_ScaleStatus(in ScaleStatus, out *ScaleStatus, c *conversion.Cloner) error
- func Kind(kind string) unversioned.GroupKind
- func Resource(resource string) unversioned.GroupResource
- type CrossVersionObjectReference
- type HorizontalPodAutoscaler
- type HorizontalPodAutoscalerList
- type HorizontalPodAutoscalerSpec
- type HorizontalPodAutoscalerStatus
- type Scale
- type ScaleSpec
- type ScaleStatus
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: runtime.APIVersionInternal}
SchemeGroupVersion is group version used to register these objects
Functions ¶
func AddToScheme ¶
func AddToScheme(scheme *runtime.Scheme)
func DeepCopy_autoscaling_CrossVersionObjectReference ¶ added in v1.3.0
func DeepCopy_autoscaling_CrossVersionObjectReference(in CrossVersionObjectReference, out *CrossVersionObjectReference, c *conversion.Cloner) error
func DeepCopy_autoscaling_HorizontalPodAutoscaler ¶ added in v1.3.0
func DeepCopy_autoscaling_HorizontalPodAutoscaler(in HorizontalPodAutoscaler, out *HorizontalPodAutoscaler, c *conversion.Cloner) error
func DeepCopy_autoscaling_HorizontalPodAutoscalerList ¶ added in v1.3.0
func DeepCopy_autoscaling_HorizontalPodAutoscalerList(in HorizontalPodAutoscalerList, out *HorizontalPodAutoscalerList, c *conversion.Cloner) error
func DeepCopy_autoscaling_HorizontalPodAutoscalerSpec ¶ added in v1.3.0
func DeepCopy_autoscaling_HorizontalPodAutoscalerSpec(in HorizontalPodAutoscalerSpec, out *HorizontalPodAutoscalerSpec, c *conversion.Cloner) error
func DeepCopy_autoscaling_HorizontalPodAutoscalerStatus ¶ added in v1.3.0
func DeepCopy_autoscaling_HorizontalPodAutoscalerStatus(in HorizontalPodAutoscalerStatus, out *HorizontalPodAutoscalerStatus, c *conversion.Cloner) error
func DeepCopy_autoscaling_Scale ¶ added in v1.3.0
func DeepCopy_autoscaling_Scale(in Scale, out *Scale, c *conversion.Cloner) error
func DeepCopy_autoscaling_ScaleSpec ¶ added in v1.3.0
func DeepCopy_autoscaling_ScaleSpec(in ScaleSpec, out *ScaleSpec, c *conversion.Cloner) error
func DeepCopy_autoscaling_ScaleStatus ¶ added in v1.3.0
func DeepCopy_autoscaling_ScaleStatus(in ScaleStatus, out *ScaleStatus, c *conversion.Cloner) error
Types ¶
type CrossVersionObjectReference ¶ added in v1.3.0
type CrossVersionObjectReference struct {
// Kind of the referent; More info: http://releases.k8s.io/release-1.3/docs/devel/api-conventions.md#types-kinds"
Kind string `json:"kind" protobuf:"bytes,1,opt,name=kind"`
// Name of the referent; More info: http://releases.k8s.io/release-1.3/docs/user-guide/identifiers.md#names
Name string `json:"name" protobuf:"bytes,2,opt,name=name"`
// API version of the referent
APIVersion string `json:"apiVersion,omitempty" protobuf:"bytes,3,opt,name=apiVersion"`
}
CrossVersionObjectReference contains enough information to let you identify the referred resource.
func (*CrossVersionObjectReference) CodecDecodeSelf ¶ added in v1.3.0
func (x *CrossVersionObjectReference) CodecDecodeSelf(d *codec1978.Decoder)
func (*CrossVersionObjectReference) CodecEncodeSelf ¶ added in v1.3.0
func (x *CrossVersionObjectReference) CodecEncodeSelf(e *codec1978.Encoder)
type HorizontalPodAutoscaler ¶ added in v1.3.0
type HorizontalPodAutoscaler struct {
unversioned.TypeMeta `json:",inline"`
api.ObjectMeta `json:"metadata,omitempty"`
// behaviour of autoscaler. More info: http://releases.k8s.io/release-1.3/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 ¶ added in v1.3.0
func (x *HorizontalPodAutoscaler) CodecDecodeSelf(d *codec1978.Decoder)
func (*HorizontalPodAutoscaler) CodecEncodeSelf ¶ added in v1.3.0
func (x *HorizontalPodAutoscaler) CodecEncodeSelf(e *codec1978.Encoder)
type HorizontalPodAutoscalerList ¶ added in v1.3.0
type HorizontalPodAutoscalerList struct {
unversioned.TypeMeta `json:",inline"`
unversioned.ListMeta `json:"metadata,omitempty"`
// list of horizontal pod autoscaler objects.
Items []HorizontalPodAutoscaler `json:"items"`
}
list of horizontal pod autoscaler objects.
func (*HorizontalPodAutoscalerList) CodecDecodeSelf ¶ added in v1.3.0
func (x *HorizontalPodAutoscalerList) CodecDecodeSelf(d *codec1978.Decoder)
func (*HorizontalPodAutoscalerList) CodecEncodeSelf ¶ added in v1.3.0
func (x *HorizontalPodAutoscalerList) CodecEncodeSelf(e *codec1978.Encoder)
type HorizontalPodAutoscalerSpec ¶ added in v1.3.0
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. It cannot be smaller than MinReplicas.
MaxReplicas int32 `json:"maxReplicas"`
// target average CPU utilization (represented as a percentage of requested CPU) over all the pods;
// if not specified the default autoscaling policy will be used.
TargetCPUUtilizationPercentage *int32 `json:"targetCPUUtilizationPercentage,omitempty"`
}
specification of a horizontal pod autoscaler.
func (*HorizontalPodAutoscalerSpec) CodecDecodeSelf ¶ added in v1.3.0
func (x *HorizontalPodAutoscalerSpec) CodecDecodeSelf(d *codec1978.Decoder)
func (*HorizontalPodAutoscalerSpec) CodecEncodeSelf ¶ added in v1.3.0
func (x *HorizontalPodAutoscalerSpec) CodecEncodeSelf(e *codec1978.Encoder)
type HorizontalPodAutoscalerStatus ¶ added in v1.3.0
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 ¶ added in v1.3.0
func (x *HorizontalPodAutoscalerStatus) CodecDecodeSelf(d *codec1978.Decoder)
func (*HorizontalPodAutoscalerStatus) CodecEncodeSelf ¶ added in v1.3.0
func (x *HorizontalPodAutoscalerStatus) CodecEncodeSelf(e *codec1978.Encoder)
type Scale ¶
type Scale struct {
unversioned.TypeMeta `json:",inline"`
// Standard object metadata; More info: http://releases.k8s.io/release-1.3/docs/devel/api-conventions.md#metadata.
api.ObjectMeta `json:"metadata,omitempty"`
// defines the behavior of the scale. More info: http://releases.k8s.io/release-1.3/docs/devel/api-conventions.md#spec-and-status.
Spec ScaleSpec `json:"spec,omitempty"`
// current status of the scale. More info: http://releases.k8s.io/release-1.3/docs/devel/api-conventions.md#spec-and-status. Read-only.
Status ScaleStatus `json:"status,omitempty"`
}
Scale represents a scaling request for a resource.
func (*Scale) CodecDecodeSelf ¶
func (x *Scale) CodecDecodeSelf(d *codec1978.Decoder)
func (*Scale) CodecEncodeSelf ¶
func (x *Scale) CodecEncodeSelf(e *codec1978.Encoder)
type ScaleSpec ¶
type ScaleSpec struct {
// desired number of instances for the scaled object.
Replicas int32 `json:"replicas,omitempty"`
}
ScaleSpec describes the attributes of a scale subresource.
func (*ScaleSpec) CodecDecodeSelf ¶
func (x *ScaleSpec) CodecDecodeSelf(d *codec1978.Decoder)
func (*ScaleSpec) CodecEncodeSelf ¶
func (x *ScaleSpec) CodecEncodeSelf(e *codec1978.Encoder)
type ScaleStatus ¶
type ScaleStatus struct {
// actual number of observed instances of the scaled object.
Replicas int32 `json:"replicas"`
// label query over pods that should match the replicas count. This is same
// as the label selector but in the string format to avoid introspection
// by clients. The string will be in the same format as the query-param syntax.
// More info: http://releases.k8s.io/release-1.3/docs/user-guide/labels.md#label-selectors
Selector string `json:"selector,omitempty"`
}
ScaleStatus represents the current status of a scale subresource.
func (*ScaleStatus) CodecDecodeSelf ¶
func (x *ScaleStatus) CodecDecodeSelf(d *codec1978.Decoder)
func (*ScaleStatus) CodecEncodeSelf ¶
func (x *ScaleStatus) CodecEncodeSelf(e *codec1978.Encoder)
Directories
¶
Path | Synopsis |
---|---|
Package install installs the experimental API group, making it available as an option to all of the API encoding/decoding machinery.
|
Package install installs the experimental API group, making it available as an option to all of the API encoding/decoding machinery. |
+genconversion=true Package v1 is a generated protocol buffer package.
|
+genconversion=true Package v1 is a generated protocol buffer package. |
Click to show internal directories.
Click to hide internal directories.