Documentation
¶
Overview ¶
Package v2 contains API Schema definitions for the autoscaling v2 API group +kubebuilder:object:generate=true +groupName=autoscaling.ai.op.dysnix.org
Index ¶
- Constants
- Variables
- type AIPodAutoscaler
- func (in *AIPodAutoscaler) DeepCopy() *AIPodAutoscaler
- func (in *AIPodAutoscaler) DeepCopyInto(out *AIPodAutoscaler)
- func (in *AIPodAutoscaler) DeepCopyObject() runtime.Object
- func (in *AIPodAutoscaler) Default()
- func (in *AIPodAutoscaler) SetupWebhookWithManager(mgr ctrl.Manager) error
- func (in *AIPodAutoscaler) ValidateCreate() error
- func (in *AIPodAutoscaler) ValidateDelete() error
- func (in *AIPodAutoscaler) ValidateUpdate(old runtime.Object) error
- type AIPodAutoscalerList
- type AIPodAutoscalerSpec
- type AIPodAutoscalerStatus
Constants ¶
const ( ZeroDurationFieldErr = "zero duration field value" InvalidMaxReplicasErr = "max replicas value is zero or biggest then min replicas" InvalidMinReplicasErr = "min replicas value is zero" NameLengthErr = "must be no more than 52 characters" ControllersAppVersion = "apps/v1" )
Variables ¶
var ( // GroupVersion is group version used to register these objects GroupVersion = schema.GroupVersion{Group: "autoscaling.ai.op.dysnix.org", Version: "v2"} // SchemeBuilder is used to add go types to the GroupVersionKind scheme SchemeBuilder = &scheme.Builder{GroupVersion: GroupVersion} // AddToScheme adds the types in this group-version to the given scheme. AddToScheme = SchemeBuilder.AddToScheme )
Functions ¶
This section is empty.
Types ¶
type AIPodAutoscaler ¶
type AIPodAutoscaler struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` Spec AIPodAutoscalerSpec `json:"spec,omitempty"` Status AIPodAutoscalerStatus `json:"status,omitempty"` }
AIPodAutoscaler is the Schema for the aipodautoscalers API
func (*AIPodAutoscaler) DeepCopy ¶
func (in *AIPodAutoscaler) DeepCopy() *AIPodAutoscaler
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new AIPodAutoscaler.
func (*AIPodAutoscaler) DeepCopyInto ¶
func (in *AIPodAutoscaler) DeepCopyInto(out *AIPodAutoscaler)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*AIPodAutoscaler) DeepCopyObject ¶
func (in *AIPodAutoscaler) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
func (*AIPodAutoscaler) Default ¶
func (in *AIPodAutoscaler) Default()
Default implements webhook.Defaulter so a webhook will be registered for the type
func (*AIPodAutoscaler) SetupWebhookWithManager ¶
func (in *AIPodAutoscaler) SetupWebhookWithManager(mgr ctrl.Manager) error
func (*AIPodAutoscaler) ValidateCreate ¶
func (in *AIPodAutoscaler) ValidateCreate() error
ValidateCreate implements webhook.Validator so a webhook will be registered for the type
func (*AIPodAutoscaler) ValidateDelete ¶
func (in *AIPodAutoscaler) ValidateDelete() error
ValidateDelete implements webhook.Validator so a webhook will be registered for the type
func (*AIPodAutoscaler) ValidateUpdate ¶
func (in *AIPodAutoscaler) ValidateUpdate(old runtime.Object) error
ValidateUpdate implements webhook.Validator so a webhook will be registered for the type
type AIPodAutoscalerList ¶
type AIPodAutoscalerList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` Items []AIPodAutoscaler `json:"items"` }
AIPodAutoscalerList contains a list of AIPodAutoscaler
func (*AIPodAutoscalerList) DeepCopy ¶
func (in *AIPodAutoscalerList) DeepCopy() *AIPodAutoscalerList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new AIPodAutoscalerList.
func (*AIPodAutoscalerList) DeepCopyInto ¶
func (in *AIPodAutoscalerList) DeepCopyInto(out *AIPodAutoscalerList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*AIPodAutoscalerList) DeepCopyObject ¶
func (in *AIPodAutoscalerList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type AIPodAutoscalerSpec ¶
type AIPodAutoscalerSpec struct { // ScaleTargetRef block of spec metadata for info about scale resource // +kubebuilder:validation:Required ScaleTargetRef types.ScaleTargetRef `json:"scaleTargetRef"` // MinReplicas minimal replicas count //+kubebuilder:default=1 MinReplicas uint32 `json:"minReplicas"` // MaxReplicas maximal replicas count //+kubebuilder:default=30 MaxReplicas uint32 `json:"maxReplicas"` // TimeWindow time window for monitoring //+kubebuilder:validation:Required //+kubebuilder:validation:Type=string //+kubebuilder:default="30m" //+kubebuilder:validation:Pattern=^([0-9]+(m|s|ms|mk|h|d|w))+$ TimeWindow types.Duration `json:"timeWindow" yaml:"timeWindow"` // UpdateInterval duration timeout value for search resource loop iteration //+kubebuilder:validation:Required //+kubebuilder:validation:Type=string //+kubebuilder:default="60s" //+kubebuilder:validation:Pattern=^([0-9]+(m|s|ms|mk|h|d|w))+$ UpdateInterval types.Duration `json:"updateInterval" yaml:"updateInterval"` // Sources sources metadata block ////+kubebuilder:validation:Required ////+kubebuilder:default=[{"type":"History","period":["daily","weekly","monthly"],"metrics":["cpu","memory","disk","network","logs"]}] Sources types.Sources `json:"sources"` Namespace string `json:"-"` }
EDIT THIS FILE! THIS IS SCAFFOLDING FOR YOU TO OWN! NOTE: json tags are required. Any new fields you add must have json tags for the fields to be serialized. AIPodAutoscalerSpec defines the desired state of AIPodAutoscaler
func (*AIPodAutoscalerSpec) DeepCopy ¶
func (in *AIPodAutoscalerSpec) DeepCopy() *AIPodAutoscalerSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new AIPodAutoscalerSpec.
func (*AIPodAutoscalerSpec) DeepCopyInto ¶
func (in *AIPodAutoscalerSpec) DeepCopyInto(out *AIPodAutoscalerSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*AIPodAutoscalerSpec) GetTimeWindow ¶
func (in *AIPodAutoscalerSpec) GetTimeWindow() (result time.Duration)
func (*AIPodAutoscalerSpec) GetUpdateInterval ¶
func (in *AIPodAutoscalerSpec) GetUpdateInterval() (result time.Duration)
type AIPodAutoscalerStatus ¶
type AIPodAutoscalerStatus struct { // INSERT ADDITIONAL STATUS FIELD - define observed state of cluster // Important: Run "make" to regenerate code after modifying this file // A list of pointers to currently running jobs. // +optional Active []corev1.ObjectReference `json:"active,omitempty"` }
AIPodAutoscalerStatus defines the observed state of AIPodAutoscaler
func (*AIPodAutoscalerStatus) DeepCopy ¶
func (in *AIPodAutoscalerStatus) DeepCopy() *AIPodAutoscalerStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new AIPodAutoscalerStatus.
func (*AIPodAutoscalerStatus) DeepCopyInto ¶
func (in *AIPodAutoscalerStatus) DeepCopyInto(out *AIPodAutoscalerStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.