v1beta1

package
v0.0.0-...-874f85d Latest Latest
Warning

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

Go to latest
Published: Nov 1, 2021 License: MIT Imports: 6 Imported by: 0

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

View Source
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

func (in *CHPA) DeepCopy() *CHPA

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new CHPA.

func (*CHPA) DeepCopyInto

func (in *CHPA) DeepCopyInto(out *CHPA)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*CHPA) DeepCopyObject

func (in *CHPA) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

func (CHPA) String

func (chpa CHPA) String() string

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

func (in *CHPAList) DeepCopy() *CHPAList

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new CHPAList.

func (*CHPAList) DeepCopyInto

func (in *CHPAList) DeepCopyInto(out *CHPAList)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*CHPAList) DeepCopyObject

func (in *CHPAList) DeepCopyObject() runtime.Object

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

func (in *CHPASpec) DeepCopy() *CHPASpec

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new CHPASpec.

func (*CHPASpec) DeepCopyInto

func (in *CHPASpec) DeepCopyInto(out *CHPASpec)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (CHPASpec) String

func (chpa_spec CHPASpec) String() string

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

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new CrossVersionObjectReference.

func (*CrossVersionObjectReference) DeepCopyInto

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

Jump to

Keyboard shortcuts

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