Documentation ¶
Overview ¶
Package v1beta1 is the v1beta1 version of the API. +groupName=confighpa.shareit.com
Index ¶
Constants ¶
This section is empty.
Variables ¶
var ( SchemeBuilder = runtime.NewSchemeBuilder(addKnownTypes) AddToScheme = SchemeBuilder.AddToScheme )
var SchemeGroupVersion = schema.GroupVersion{Group: confighpa.GroupName, Version: "v1beta1"}
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 ConfigHpa ¶
type ConfigHpa struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` Spec ConfigHpaSpec `json:"spec,omitempty"` Status ConfigHpaStatus `json:"status,omitempty"` }
func (*ConfigHpa) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ConfigHpa.
func (*ConfigHpa) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*ConfigHpa) DeepCopyObject ¶
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type ConfigHpaList ¶
type ConfigHpaList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` Items []ConfigHpa `json:"items"` }
ConfigHpaList contains a list of ConfigHpa
func (*ConfigHpaList) DeepCopy ¶
func (in *ConfigHpaList) DeepCopy() *ConfigHpaList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ConfigHpaList.
func (*ConfigHpaList) DeepCopyInto ¶
func (in *ConfigHpaList) DeepCopyInto(out *ConfigHpaList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*ConfigHpaList) DeepCopyObject ¶
func (in *ConfigHpaList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type ConfigHpaSpec ¶
type ConfigHpaSpec struct { // part of HorizontalController, see comments in the k8s repo: pkg/controller/podautoscaler/horizontal.go DownscaleForbiddenWindowSeconds int32 `json:"downscaleForbiddenWindowSeconds,omitempty"` UpscaleForbiddenWindowSeconds int32 `json:"upscaleForbiddenWindowSeconds,omitempty"` // See the comment about this parameter above ScaleUpLimitFactor float64 `json:"scaleUpLimitFactor,omitempty"` // See the comment about this parameter above ScaleDownLimitFactor float64 `json:"scaleDownLimitFactor,omitempty"` 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"` MinReplicas *int32 `json:"minReplicas,omitempty"` MaxReplicas int32 `json:"maxReplicas"` }
specification of horizontal pod autoscaler was copied from HorizontalPodAutoscalerSpec + HPAControllerConfiguration
func (*ConfigHpaSpec) DeepCopy ¶
func (in *ConfigHpaSpec) DeepCopy() *ConfigHpaSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ConfigHpaSpec.
func (*ConfigHpaSpec) DeepCopyInto ¶
func (in *ConfigHpaSpec) DeepCopyInto(out *ConfigHpaSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (ConfigHpaSpec) String ¶
func (chpa_spec ConfigHpaSpec) String() string
type ConfigHpaStatus ¶
type ConfigHpaStatus 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"` }
ConfigHpaStatus defines the observed state of CHPA
func (*ConfigHpaStatus) DeepCopy ¶
func (in *ConfigHpaStatus) DeepCopy() *ConfigHpaStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ConfigHpaStatus.
func (*ConfigHpaStatus) DeepCopyInto ¶
func (in *ConfigHpaStatus) DeepCopyInto(out *ConfigHpaStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (ConfigHpaStatus) String ¶
func (chpa_status ConfigHpaStatus) 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.