Documentation ¶
Overview ¶
Package v1alpha1 contains API Schema definitions for the autoscaling v1alpha1 API group +k8s:openapi-gen=true +k8s:deepcopy-gen=package,register +k8s:conversion-gen=github.com/containers-ai/alameda/operator/pkg/apis/autoscaling +k8s:defaulter-gen=TypeMeta +groupName=autoscaling.containers.ai
Package v1alpha1 contains API Schema definitions for the autoscaling v1alpha1 API group +k8s:openapi-gen=true +k8s:deepcopy-gen=package,register +k8s:conversion-gen=github.com/containers-ai/alameda/operator/pkg/apis/autoscaling +k8s:defaulter-gen=TypeMeta +groupName=autoscaling.containers.ai
Index ¶
- Constants
- Variables
- func Resource(resource string) schema.GroupResource
- type AlamedaContainer
- type AlamedaController
- type AlamedaControllerType
- type AlamedaPod
- type AlamedaRecommendation
- type AlamedaRecommendationList
- type AlamedaRecommendationSpec
- type AlamedaRecommendationStatus
- type AlamedaResource
- type AlamedaScaler
- func (in *AlamedaScaler) DeepCopy() *AlamedaScaler
- func (in *AlamedaScaler) DeepCopyInto(out *AlamedaScaler)
- func (in *AlamedaScaler) DeepCopyObject() runtime.Object
- func (as *AlamedaScaler) GenCustomResourceVersion() string
- func (as *AlamedaScaler) GetLabelMapToSetToAlamedaRecommendationLabel() map[string]string
- func (as *AlamedaScaler) GetMonitoredPods() []*AlamedaPod
- func (as *AlamedaScaler) ResetStatusAlamedaController()
- func (as *AlamedaScaler) SetCustomResourceVersion(v string)
- type AlamedaScalerList
- type AlamedaScalerSpec
- type AlamedaScalerStatus
- type NamespacedName
Constants ¶
const ( RecommendationPolicySTABLE alamedaPolicy = "stable" RecommendationPolicyCOMPACT alamedaPolicy = "compact" )
Variables ¶
var ( // SchemeGroupVersion is group version used to register these objects SchemeGroupVersion = schema.GroupVersion{Group: "autoscaling.containers.ai", Version: "v1alpha1"} // SchemeBuilder is used to add go types to the GroupVersionKind scheme SchemeBuilder = &scheme.Builder{GroupVersion: SchemeGroupVersion} // AddToScheme is required by pkg/client/... AddToScheme = SchemeBuilder.AddToScheme )
var ( AlamedaControllerTypeName = map[AlamedaControllerType]string{ DeploymentController: "deployment", DeploymentConfigController: "deploymentconfig", } )
Functions ¶
func Resource ¶
func Resource(resource string) schema.GroupResource
Resource is required by pkg/client/listers/...
Types ¶
type AlamedaContainer ¶
type AlamedaContainer struct { Name string `json:"name" protobuf:"bytes,1,opt,name=name"` Resources corev1.ResourceRequirements `json:"resources,omitempty" protobuf:"bytes,2,opt,name=resources"` }
func (*AlamedaContainer) DeepCopy ¶
func (in *AlamedaContainer) DeepCopy() *AlamedaContainer
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new AlamedaContainer.
func (*AlamedaContainer) DeepCopyInto ¶
func (in *AlamedaContainer) DeepCopyInto(out *AlamedaContainer)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type AlamedaController ¶
type AlamedaController struct { Deployments map[NamespacedName]AlamedaResource `json:"deployments" protobuf:"bytes,1,opt,name=deployments"` DeploymentConfigs map[NamespacedName]AlamedaResource `json:"deploymentconfigs" protobuf:"bytes,2,opt,name=deploymentconfigs"` }
func (*AlamedaController) DeepCopy ¶
func (in *AlamedaController) DeepCopy() *AlamedaController
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new AlamedaController.
func (*AlamedaController) DeepCopyInto ¶
func (in *AlamedaController) DeepCopyInto(out *AlamedaController)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type AlamedaControllerType ¶ added in v0.3.0
type AlamedaControllerType int
const ( DeploymentController AlamedaControllerType = 1 DeploymentConfigController AlamedaControllerType = 2 )
type AlamedaPod ¶
type AlamedaPod struct { Namespace string `json:"namespace" protobuf:"bytes,1,opt,name=namespace"` Name string `json:"name" protobuf:"bytes,2,opt,name=name"` UID string `json:"uid" protobuf:"bytes,3,opt,name=uid"` Containers []AlamedaContainer `json:"containers" protobuf:"bytes,4,opt,name=containers"` }
func (*AlamedaPod) DeepCopy ¶
func (in *AlamedaPod) DeepCopy() *AlamedaPod
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new AlamedaPod.
func (*AlamedaPod) DeepCopyInto ¶
func (in *AlamedaPod) DeepCopyInto(out *AlamedaPod)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*AlamedaPod) GetNamespacedName ¶ added in v0.3.0
func (p *AlamedaPod) GetNamespacedName() NamespacedName
type AlamedaRecommendation ¶
type AlamedaRecommendation struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` Spec AlamedaRecommendationSpec `json:"spec,omitempty"` Status AlamedaRecommendationStatus `json:"status,omitempty"` }
AlamedaRecommendation is the Schema for the alamedarecommendations API +k8s:openapi-gen=true
func (*AlamedaRecommendation) DeepCopy ¶
func (in *AlamedaRecommendation) DeepCopy() *AlamedaRecommendation
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new AlamedaRecommendation.
func (*AlamedaRecommendation) DeepCopyInto ¶
func (in *AlamedaRecommendation) DeepCopyInto(out *AlamedaRecommendation)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*AlamedaRecommendation) DeepCopyObject ¶
func (in *AlamedaRecommendation) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
func (*AlamedaRecommendation) GetNamespacedName ¶ added in v0.3.0
func (ar *AlamedaRecommendation) GetNamespacedName() NamespacedName
type AlamedaRecommendationList ¶
type AlamedaRecommendationList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` Items []AlamedaRecommendation `json:"items"` }
AlamedaRecommendationList contains a list of AlamedaRecommendation
func (*AlamedaRecommendationList) DeepCopy ¶
func (in *AlamedaRecommendationList) DeepCopy() *AlamedaRecommendationList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new AlamedaRecommendationList.
func (*AlamedaRecommendationList) DeepCopyInto ¶
func (in *AlamedaRecommendationList) DeepCopyInto(out *AlamedaRecommendationList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*AlamedaRecommendationList) DeepCopyObject ¶
func (in *AlamedaRecommendationList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type AlamedaRecommendationSpec ¶
type AlamedaRecommendationSpec struct {
Containers []AlamedaContainer `json:"containers" protobuf:"bytes,1,opt,name=containers"`
}
AlamedaRecommendationSpec defines the desired state of AlamedaRecommendation
func (*AlamedaRecommendationSpec) DeepCopy ¶
func (in *AlamedaRecommendationSpec) DeepCopy() *AlamedaRecommendationSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new AlamedaRecommendationSpec.
func (*AlamedaRecommendationSpec) DeepCopyInto ¶
func (in *AlamedaRecommendationSpec) DeepCopyInto(out *AlamedaRecommendationSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type AlamedaRecommendationStatus ¶
type AlamedaRecommendationStatus struct { }
AlamedaRecommendationStatus defines the observed state of AlamedaRecommendation
func (*AlamedaRecommendationStatus) DeepCopy ¶
func (in *AlamedaRecommendationStatus) DeepCopy() *AlamedaRecommendationStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new AlamedaRecommendationStatus.
func (*AlamedaRecommendationStatus) DeepCopyInto ¶
func (in *AlamedaRecommendationStatus) DeepCopyInto(out *AlamedaRecommendationStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type AlamedaResource ¶ added in v0.3.0
type AlamedaResource struct { Namespace string `json:"namespace" protobuf:"bytes,1,opt,name=namespace"` Name string `json:"name" protobuf:"bytes,2,opt,name=name"` UID string `json:"uid" protobuf:"bytes,3,opt,name=uid"` Pods map[NamespacedName]AlamedaPod `json:"pods" protobuf:"bytes,4,opt,name=pods"` }
func (*AlamedaResource) DeepCopy ¶ added in v0.3.0
func (in *AlamedaResource) DeepCopy() *AlamedaResource
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new AlamedaResource.
func (*AlamedaResource) DeepCopyInto ¶ added in v0.3.0
func (in *AlamedaResource) DeepCopyInto(out *AlamedaResource)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type AlamedaScaler ¶
type AlamedaScaler struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` Spec AlamedaScalerSpec `json:"spec,omitempty"` Status AlamedaScalerStatus `json:"status,omitempty"` }
AlamedaScaler is the Schema for the alamedascalers API +k8s:openapi-gen=true
func (*AlamedaScaler) DeepCopy ¶
func (in *AlamedaScaler) DeepCopy() *AlamedaScaler
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new AlamedaScaler.
func (*AlamedaScaler) DeepCopyInto ¶
func (in *AlamedaScaler) DeepCopyInto(out *AlamedaScaler)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*AlamedaScaler) DeepCopyObject ¶
func (in *AlamedaScaler) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
func (*AlamedaScaler) GenCustomResourceVersion ¶ added in v0.3.0
func (as *AlamedaScaler) GenCustomResourceVersion() string
func (*AlamedaScaler) GetLabelMapToSetToAlamedaRecommendationLabel ¶ added in v0.3.0
func (as *AlamedaScaler) GetLabelMapToSetToAlamedaRecommendationLabel() map[string]string
func (*AlamedaScaler) GetMonitoredPods ¶ added in v0.3.0
func (as *AlamedaScaler) GetMonitoredPods() []*AlamedaPod
func (*AlamedaScaler) ResetStatusAlamedaController ¶ added in v0.3.0
func (as *AlamedaScaler) ResetStatusAlamedaController()
func (*AlamedaScaler) SetCustomResourceVersion ¶ added in v0.3.0
func (as *AlamedaScaler) SetCustomResourceVersion(v string)
type AlamedaScalerList ¶
type AlamedaScalerList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` Items []AlamedaScaler `json:"items"` }
AlamedaScalerList contains a list of AlamedaScaler
func (*AlamedaScalerList) DeepCopy ¶
func (in *AlamedaScalerList) DeepCopy() *AlamedaScalerList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new AlamedaScalerList.
func (*AlamedaScalerList) DeepCopyInto ¶
func (in *AlamedaScalerList) DeepCopyInto(out *AlamedaScalerList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*AlamedaScalerList) DeepCopyObject ¶
func (in *AlamedaScalerList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type AlamedaScalerSpec ¶
type AlamedaScalerSpec struct { // Important: Run "make" to regenerate code after modifying this file Selector *metav1.LabelSelector `json:"selector" protobuf:"bytes,1,opt,name=selector"` EnableExecution enableExecution `json:"enableexecution" protobuf:"bytes,2,opt,name=enableexecution"` // +kubebuilder:validation:Enum=stable,compact Policy alamedaPolicy `json:"policy,omitempty" protobuf:"bytes,3,opt,name=policy"` CustomResourceVersion string `json:"customResourceVersion,omitempty" protobuf:"bytes,4,opt,name=custom_resource_version"` }
AlamedaScalerSpec defines the desired state of AlamedaScaler INSERT ADDITIONAL SPEC FIELDS - desired state of cluster
func (*AlamedaScalerSpec) DeepCopy ¶
func (in *AlamedaScalerSpec) DeepCopy() *AlamedaScalerSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new AlamedaScalerSpec.
func (*AlamedaScalerSpec) DeepCopyInto ¶
func (in *AlamedaScalerSpec) DeepCopyInto(out *AlamedaScalerSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type AlamedaScalerStatus ¶
type AlamedaScalerStatus struct {
AlamedaController AlamedaController `json:"alamedaController,omitempty" protobuf:"bytes,4,opt,name=alameda_controller"`
}
AlamedaScalerStatus defines the observed state of AlamedaScaler
func (*AlamedaScalerStatus) DeepCopy ¶
func (in *AlamedaScalerStatus) DeepCopy() *AlamedaScalerStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new AlamedaScalerStatus.
func (*AlamedaScalerStatus) DeepCopyInto ¶
func (in *AlamedaScalerStatus) DeepCopyInto(out *AlamedaScalerStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type NamespacedName ¶
type NamespacedName = string