Documentation ¶
Index ¶
- Constants
- Variables
- func Resource(resource string) schema.GroupResource
- type CrossVersionObjectReference
- type HorizontalPodAutoscaler
- func (v *HorizontalPodAutoscaler) GroupVersionKind() schema.GroupVersionKind
- func (v HorizontalPodAutoscaler) MarshalEasyJSON(w *jwriter.Writer)
- func (v HorizontalPodAutoscaler) MarshalJSON() ([]byte, error)
- func (v *HorizontalPodAutoscaler) UnmarshalEasyJSON(l *jlexer.Lexer)
- func (v *HorizontalPodAutoscaler) UnmarshalJSON(data []byte) error
- type HorizontalPodAutoscalerList
- func (v *HorizontalPodAutoscalerList) GroupVersionKind() schema.GroupVersionKind
- func (v HorizontalPodAutoscalerList) MarshalEasyJSON(w *jwriter.Writer)
- func (v HorizontalPodAutoscalerList) MarshalJSON() ([]byte, error)
- func (v *HorizontalPodAutoscalerList) UnmarshalEasyJSON(l *jlexer.Lexer)
- func (v *HorizontalPodAutoscalerList) UnmarshalJSON(data []byte) error
- type HorizontalPodAutoscalerSpec
- type HorizontalPodAutoscalerStatus
- type Scale
- type ScaleSpec
- type ScaleStatus
Constants ¶
const GroupName = "autoscaling"
GroupName is the group name use in this package
Variables ¶
var SchemeGroupVersion = schema.GroupVersion{Group: GroupName, Version: "v1"}
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 CrossVersionObjectReference ¶
type CrossVersionObjectReference struct { // apiVersion is the API version of the referent APIVersion string `json:"apiVersion,omitempty"` // kind is the kind of the referent; More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds // Required: true Kind *string `json:"kind"` // name is the name of the referent; More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names // Required: true Name *string `json:"name"` }
CrossVersionObjectReference CrossVersionObjectReference contains enough information to let you identify the referred resource.
swagger:model CrossVersionObjectReference
func (CrossVersionObjectReference) MarshalEasyJSON ¶
func (v CrossVersionObjectReference) MarshalEasyJSON(w *jwriter.Writer)
MarshalEasyJSON supports easyjson.Marshaler interface
func (CrossVersionObjectReference) MarshalJSON ¶
func (v CrossVersionObjectReference) MarshalJSON() ([]byte, error)
MarshalJSON supports json.Marshaler interface
func (*CrossVersionObjectReference) UnmarshalEasyJSON ¶
func (v *CrossVersionObjectReference) UnmarshalEasyJSON(l *jlexer.Lexer)
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*CrossVersionObjectReference) UnmarshalJSON ¶
func (v *CrossVersionObjectReference) UnmarshalJSON(data []byte) error
UnmarshalJSON supports json.Unmarshaler interface
type HorizontalPodAutoscaler ¶
type HorizontalPodAutoscaler struct { // APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources APIVersion string `json:"apiVersion,omitempty"` // Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds Kind string `json:"kind,omitempty"` // Standard object metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata Metadata *apimachinery_pkg_apis_meta_v1.ObjectMeta `json:"metadata,omitempty"` // spec defines the behaviour of autoscaler. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status. Spec *HorizontalPodAutoscalerSpec `json:"spec,omitempty"` // status is the current information about the autoscaler. Status *HorizontalPodAutoscalerStatus `json:"status,omitempty"` }
HorizontalPodAutoscaler configuration of a horizontal pod autoscaler.
swagger:model HorizontalPodAutoscaler
func (*HorizontalPodAutoscaler) GroupVersionKind ¶
func (v *HorizontalPodAutoscaler) GroupVersionKind() schema.GroupVersionKind
func (HorizontalPodAutoscaler) MarshalEasyJSON ¶
func (v HorizontalPodAutoscaler) MarshalEasyJSON(w *jwriter.Writer)
MarshalEasyJSON supports easyjson.Marshaler interface
func (HorizontalPodAutoscaler) MarshalJSON ¶
func (v HorizontalPodAutoscaler) MarshalJSON() ([]byte, error)
MarshalJSON supports json.Marshaler interface
func (*HorizontalPodAutoscaler) UnmarshalEasyJSON ¶
func (v *HorizontalPodAutoscaler) UnmarshalEasyJSON(l *jlexer.Lexer)
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*HorizontalPodAutoscaler) UnmarshalJSON ¶
func (v *HorizontalPodAutoscaler) UnmarshalJSON(data []byte) error
UnmarshalJSON supports json.Unmarshaler interface
type HorizontalPodAutoscalerList ¶
type HorizontalPodAutoscalerList struct { // APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources APIVersion string `json:"apiVersion,omitempty"` // items is the list of horizontal pod autoscaler objects. // Required: true Items []*HorizontalPodAutoscaler `json:"items"` // Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds Kind string `json:"kind,omitempty"` // Standard list metadata. Metadata *apimachinery_pkg_apis_meta_v1.ListMeta `json:"metadata,omitempty"` }
HorizontalPodAutoscalerList list of horizontal pod autoscaler objects.
swagger:model HorizontalPodAutoscalerList
func (*HorizontalPodAutoscalerList) GroupVersionKind ¶
func (v *HorizontalPodAutoscalerList) GroupVersionKind() schema.GroupVersionKind
func (HorizontalPodAutoscalerList) MarshalEasyJSON ¶
func (v HorizontalPodAutoscalerList) MarshalEasyJSON(w *jwriter.Writer)
MarshalEasyJSON supports easyjson.Marshaler interface
func (HorizontalPodAutoscalerList) MarshalJSON ¶
func (v HorizontalPodAutoscalerList) MarshalJSON() ([]byte, error)
MarshalJSON supports json.Marshaler interface
func (*HorizontalPodAutoscalerList) UnmarshalEasyJSON ¶
func (v *HorizontalPodAutoscalerList) UnmarshalEasyJSON(l *jlexer.Lexer)
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*HorizontalPodAutoscalerList) UnmarshalJSON ¶
func (v *HorizontalPodAutoscalerList) UnmarshalJSON(data []byte) error
UnmarshalJSON supports json.Unmarshaler interface
type HorizontalPodAutoscalerSpec ¶
type HorizontalPodAutoscalerSpec struct { // maxReplicas is the upper limit for the number of pods that can be set by the autoscaler; cannot be smaller than MinReplicas. // Required: true MaxReplicas *int32 `json:"maxReplicas"` // minReplicas is the lower limit for the number of replicas to which the autoscaler can scale down. It defaults to 1 pod. minReplicas is allowed to be 0 if the alpha feature gate HPAScaleToZero is enabled and at least one Object or External metric is configured. Scaling is active as long as at least one metric value is available. MinReplicas int32 `json:"minReplicas,omitempty"` // 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. // Required: true ScaleTargetRef *CrossVersionObjectReference `json:"scaleTargetRef"` // targetCPUUtilizationPercentage is the 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"` }
HorizontalPodAutoscalerSpec specification of a horizontal pod autoscaler.
swagger:model HorizontalPodAutoscalerSpec
func (HorizontalPodAutoscalerSpec) MarshalEasyJSON ¶
func (v HorizontalPodAutoscalerSpec) MarshalEasyJSON(w *jwriter.Writer)
MarshalEasyJSON supports easyjson.Marshaler interface
func (HorizontalPodAutoscalerSpec) MarshalJSON ¶
func (v HorizontalPodAutoscalerSpec) MarshalJSON() ([]byte, error)
MarshalJSON supports json.Marshaler interface
func (*HorizontalPodAutoscalerSpec) UnmarshalEasyJSON ¶
func (v *HorizontalPodAutoscalerSpec) UnmarshalEasyJSON(l *jlexer.Lexer)
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*HorizontalPodAutoscalerSpec) UnmarshalJSON ¶
func (v *HorizontalPodAutoscalerSpec) UnmarshalJSON(data []byte) error
UnmarshalJSON supports json.Unmarshaler interface
type HorizontalPodAutoscalerStatus ¶
type HorizontalPodAutoscalerStatus struct { // currentCPUUtilizationPercentage is the 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"` // currentReplicas is the current number of replicas of pods managed by this autoscaler. // Required: true CurrentReplicas *int32 `json:"currentReplicas"` // desiredReplicas is the desired number of replicas of pods managed by this autoscaler. // Required: true DesiredReplicas *int32 `json:"desiredReplicas"` // lastScaleTime is the last time the HorizontalPodAutoscaler scaled the number of pods; used by the autoscaler to control how often the number of pods is changed. LastScaleTime *apimachinery_pkg_apis_meta_v1.Time `json:"lastScaleTime,omitempty"` // observedGeneration is the most recent generation observed by this autoscaler. ObservedGeneration int64 `json:"observedGeneration,omitempty"` }
HorizontalPodAutoscalerStatus current status of a horizontal pod autoscaler
swagger:model HorizontalPodAutoscalerStatus
func (HorizontalPodAutoscalerStatus) MarshalEasyJSON ¶
func (v HorizontalPodAutoscalerStatus) MarshalEasyJSON(w *jwriter.Writer)
MarshalEasyJSON supports easyjson.Marshaler interface
func (HorizontalPodAutoscalerStatus) MarshalJSON ¶
func (v HorizontalPodAutoscalerStatus) MarshalJSON() ([]byte, error)
MarshalJSON supports json.Marshaler interface
func (*HorizontalPodAutoscalerStatus) UnmarshalEasyJSON ¶
func (v *HorizontalPodAutoscalerStatus) UnmarshalEasyJSON(l *jlexer.Lexer)
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*HorizontalPodAutoscalerStatus) UnmarshalJSON ¶
func (v *HorizontalPodAutoscalerStatus) UnmarshalJSON(data []byte) error
UnmarshalJSON supports json.Unmarshaler interface
type Scale ¶
type Scale struct { // APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources APIVersion string `json:"apiVersion,omitempty"` // Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds Kind string `json:"kind,omitempty"` // Standard object metadata; More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata. Metadata *apimachinery_pkg_apis_meta_v1.ObjectMeta `json:"metadata,omitempty"` // spec defines the behavior of the scale. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status. Spec *ScaleSpec `json:"spec,omitempty"` // status is the current status of the scale. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status. Read-only. Status *ScaleStatus `json:"status,omitempty"` }
Scale Scale represents a scaling request for a resource.
swagger:model Scale
func (*Scale) GroupVersionKind ¶
func (v *Scale) GroupVersionKind() schema.GroupVersionKind
func (Scale) MarshalEasyJSON ¶
MarshalEasyJSON supports easyjson.Marshaler interface
func (Scale) MarshalJSON ¶
MarshalJSON supports json.Marshaler interface
func (*Scale) UnmarshalEasyJSON ¶
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*Scale) UnmarshalJSON ¶
UnmarshalJSON supports json.Unmarshaler interface
type ScaleSpec ¶
type ScaleSpec struct { // replicas is the desired number of instances for the scaled object. Replicas int32 `json:"replicas,omitempty"` }
ScaleSpec ScaleSpec describes the attributes of a scale subresource.
swagger:model ScaleSpec
func (ScaleSpec) MarshalEasyJSON ¶
MarshalEasyJSON supports easyjson.Marshaler interface
func (ScaleSpec) MarshalJSON ¶
MarshalJSON supports json.Marshaler interface
func (*ScaleSpec) UnmarshalEasyJSON ¶
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*ScaleSpec) UnmarshalJSON ¶
UnmarshalJSON supports json.Unmarshaler interface
type ScaleStatus ¶
type ScaleStatus struct { // replicas is the actual number of observed instances of the scaled object. // Required: true Replicas *int32 `json:"replicas"` // selector is the 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 about label selectors: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/ Selector string `json:"selector,omitempty"` }
ScaleStatus ScaleStatus represents the current status of a scale subresource.
swagger:model ScaleStatus
func (ScaleStatus) MarshalEasyJSON ¶
func (v ScaleStatus) MarshalEasyJSON(w *jwriter.Writer)
MarshalEasyJSON supports easyjson.Marshaler interface
func (ScaleStatus) MarshalJSON ¶
func (v ScaleStatus) MarshalJSON() ([]byte, error)
MarshalJSON supports json.Marshaler interface
func (*ScaleStatus) UnmarshalEasyJSON ¶
func (v *ScaleStatus) UnmarshalEasyJSON(l *jlexer.Lexer)
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*ScaleStatus) UnmarshalJSON ¶
func (v *ScaleStatus) UnmarshalJSON(data []byte) error
UnmarshalJSON supports json.Unmarshaler interface
Source Files ¶
- cross_version_object_reference.go
- cross_version_object_reference_easyjson.go
- group_info.go
- horizontal_pod_autoscaler.go
- horizontal_pod_autoscaler_easyjson.go
- horizontal_pod_autoscaler_gvk.go
- horizontal_pod_autoscaler_list.go
- horizontal_pod_autoscaler_list_easyjson.go
- horizontal_pod_autoscaler_list_gvk.go
- horizontal_pod_autoscaler_spec.go
- horizontal_pod_autoscaler_spec_easyjson.go
- horizontal_pod_autoscaler_status.go
- horizontal_pod_autoscaler_status_easyjson.go
- scale.go
- scale_easyjson.go
- scale_gvk.go
- scale_spec.go
- scale_spec_easyjson.go
- scale_status.go
- scale_status_easyjson.go