Documentation ¶
Overview ¶
Package v1beta1 contains API Schema definitions for the autoscalers v1beta1 API group +k8s:openapi-gen=true +k8s:deepcopy-gen=package,register +k8s:conversion-gen=github.com/postmates/configurable-hpa/pkg/apis/autoscalers +k8s:defaulter-gen=TypeMeta +groupName=autoscalers.postmates.com
Package v1beta1 contains API Schema definitions for the autoscalers v1beta1 API group +k8s:openapi-gen=true +k8s:deepcopy-gen=package,register +k8s:conversion-gen=github.com/postmates/configurable-hpa/pkg/apis/autoscalers +k8s:defaulter-gen=TypeMeta +groupName=autoscalers.postmates.com
Index ¶
Constants ¶
This section is empty.
Variables ¶
var ( // SchemeGroupVersion is group version used to register these objects SchemeGroupVersion = schema.GroupVersion{Group: "autoscalers.postmates.com", Version: "v1beta1"} // SchemeBuilder is used to add go types to the GroupVersionKind scheme SchemeBuilder = &scheme.Builder{GroupVersion: SchemeGroupVersion} )
Functions ¶
This section is empty.
Types ¶
type CHPA ¶
type CHPA struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` Spec CHPASpec `json:"spec,omitempty"` Status CHPAStatus `json:"status,omitempty"` }
CHPA is the Schema for the chpas API +k8s:openapi-gen=true
func (*CHPA) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new CHPA.
func (*CHPA) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*CHPA) DeepCopyObject ¶
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type CHPAList ¶
type CHPAList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` Items []CHPA `json:"items"` }
CHPAList contains a list of CHPA
func (*CHPAList) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new CHPAList.
func (*CHPAList) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*CHPAList) DeepCopyObject ¶
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type CHPASpec ¶
type CHPASpec struct { // part of HorizontalController, see comments in the k8s repo: pkg/controller/podautoscaler/horizontal.go // +kubebuilder:validation:Minimum=1 // +kubebuilder:validation:Maximum=600 DownscaleForbiddenWindowSeconds int32 `json:"downscaleForbiddenWindowSeconds,omitempty"` // +kubebuilder:validation:Minimum=1 // +kubebuilder:validation:Maximum=600 UpscaleForbiddenWindowSeconds int32 `json:"upscaleForbiddenWindowSeconds,omitempty"` // See the comment about this parameter above // +kubebuilder:validation:Minimum=1 // +kubebuilder:validation:Maximum=10 ScaleUpLimitFactor float64 `json:"scaleUpLimitFactor,omitempty"` // See the comment about this parameter above // +kubebuilder:validation:Minimum=1 // +kubebuilder:validation:Maximum=20 ScaleUpLimitMinimum int32 `json:"scaleUpLimitMinimum,omitempty"` // +kubebuilder:validation:Minimum=0.01 // +kubebuilder:validation:Maximum=0.99 Tolerance float64 `json:"tolerance,omitempty"` // part of HorizontalPodAutoscalerSpec, see comments in the k8s-1.10.8 repo: staging/src/k8s.io/api/autoscaling/v1/types.go // 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"` // specifications that will be used to calculate the desired replica count Metrics []autoscalingv2.MetricSpec `json:"metrics,omitempty"` // +kubebuilder:validation:Minimum=1 // +kubebuilder:validation:Maximum=1000 MinReplicas *int32 `json:"minReplicas,omitempty"` // +kubebuilder:validation:Minimum=1 // +kubebuilder:validation:Maximum=1000 MaxReplicas int32 `json:"maxReplicas"` }
specification of horizontal pod autoscaler was copied from HorizontalPodAutoscalerSpec + HPAControllerConfiguration
func (*CHPASpec) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new CHPASpec.
func (*CHPASpec) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type CHPAStatus ¶
type CHPAStatus struct { ObservedGeneration *int64 `json:"observedGeneration,omitempty"` LastScaleTime *metav1.Time `json:"lastScaleTime,omitempty"` CurrentReplicas int32 `json:"currentReplicas"` DesiredReplicas int32 `json:"desiredReplicas"` CurrentMetrics []autoscalingv2.MetricStatus `json:"currentMetrics"` Conditions []autoscalingv2.HorizontalPodAutoscalerCondition `json:"conditions"` }
CHPAStatus defines the observed state of CHPA
func (*CHPAStatus) DeepCopy ¶
func (in *CHPAStatus) DeepCopy() *CHPAStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new CHPAStatus.
func (*CHPAStatus) DeepCopyInto ¶
func (in *CHPAStatus) DeepCopyInto(out *CHPAStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (CHPAStatus) String ¶
func (chpa_status CHPAStatus) String() string
type CrossVersionObjectReference ¶
type CrossVersionObjectReference struct { // Kind of the referent; More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds" Kind string `json:"kind"` // Name of the referent; More info: http://kubernetes.io/docs/user-guide/identifiers#names Name string `json:"name"` // API version of the referent // +optional APIVersion string `json:"apiVersion,omitempty"` }
CrossVersionObjectReference contains enough information to let you identify the referred resource.
func (*CrossVersionObjectReference) DeepCopy ¶
func (in *CrossVersionObjectReference) DeepCopy() *CrossVersionObjectReference
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new CrossVersionObjectReference.
func (*CrossVersionObjectReference) DeepCopyInto ¶
func (in *CrossVersionObjectReference) DeepCopyInto(out *CrossVersionObjectReference)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.