Documentation ¶
Overview ¶
Package v1alpha2 contains API Schema definitions for the core.oam.dev v1alpha2 API group +kubebuilder:object:generate=true +groupName=core.oam.dev
Index ¶
- Variables
- type HorizontalPodAutoscalerTrait
- func (in *HorizontalPodAutoscalerTrait) DeepCopy() *HorizontalPodAutoscalerTrait
- func (in *HorizontalPodAutoscalerTrait) DeepCopyInto(out *HorizontalPodAutoscalerTrait)
- func (in *HorizontalPodAutoscalerTrait) DeepCopyObject() runtime.Object
- func (ht *HorizontalPodAutoscalerTrait) GetCondition(ct runtimev1alpha1.ConditionType) runtimev1alpha1.Condition
- func (ht *HorizontalPodAutoscalerTrait) GetWorkloadReference() runtimev1alpha1.TypedReference
- func (ht *HorizontalPodAutoscalerTrait) SetConditions(c ...runtimev1alpha1.Condition)
- func (ht *HorizontalPodAutoscalerTrait) SetWorkloadReference(r runtimev1alpha1.TypedReference)
- type HorizontalPodAutoscalerTraitList
- type HorizontalPodAutoscalerTraitSpec
- type HorizontalPodAutoscalerTraitStatus
Constants ¶
This section is empty.
Variables ¶
var ( // GroupVersion is group version used to register these objects GroupVersion = schema.GroupVersion{Group: "core.oam.dev", Version: "v1alpha2"} // 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 HorizontalPodAutoscalerTrait ¶
type HorizontalPodAutoscalerTrait struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` Spec HorizontalPodAutoscalerTraitSpec `json:"spec,omitempty"` Status HorizontalPodAutoscalerTraitStatus `json:"status,omitempty"` }
+kubebuilder:object:root=true +kubebuilder:resource:categories={crossplane,oam} +kubebuilder:subresource:status HorizontalPodAutoscalerTrait is the Schema for the horizontalpodautoscalertraits API
func (*HorizontalPodAutoscalerTrait) DeepCopy ¶
func (in *HorizontalPodAutoscalerTrait) DeepCopy() *HorizontalPodAutoscalerTrait
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new HorizontalPodAutoscalerTrait.
func (*HorizontalPodAutoscalerTrait) DeepCopyInto ¶
func (in *HorizontalPodAutoscalerTrait) DeepCopyInto(out *HorizontalPodAutoscalerTrait)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*HorizontalPodAutoscalerTrait) DeepCopyObject ¶
func (in *HorizontalPodAutoscalerTrait) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
func (*HorizontalPodAutoscalerTrait) GetCondition ¶
func (ht *HorizontalPodAutoscalerTrait) GetCondition(ct runtimev1alpha1.ConditionType) runtimev1alpha1.Condition
GetCondition of this HorizontalPodAutoscalerTrait.
func (*HorizontalPodAutoscalerTrait) GetWorkloadReference ¶
func (ht *HorizontalPodAutoscalerTrait) GetWorkloadReference() runtimev1alpha1.TypedReference
GetWorkloadReference of this HorizontalPodAutoscalerTrait.
func (*HorizontalPodAutoscalerTrait) SetConditions ¶
func (ht *HorizontalPodAutoscalerTrait) SetConditions(c ...runtimev1alpha1.Condition)
SetConditions of this HorizontalPodAutoscalerTrait.
func (*HorizontalPodAutoscalerTrait) SetWorkloadReference ¶
func (ht *HorizontalPodAutoscalerTrait) SetWorkloadReference(r runtimev1alpha1.TypedReference)
SetWorkloadReference of this HorizontalPodAutoscalerTrait.
type HorizontalPodAutoscalerTraitList ¶
type HorizontalPodAutoscalerTraitList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` Items []HorizontalPodAutoscalerTrait `json:"items"` }
HorizontalPodAutoscalerTraitList contains a list of HorizontalPodAutoscalerTrait
func (*HorizontalPodAutoscalerTraitList) DeepCopy ¶
func (in *HorizontalPodAutoscalerTraitList) DeepCopy() *HorizontalPodAutoscalerTraitList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new HorizontalPodAutoscalerTraitList.
func (*HorizontalPodAutoscalerTraitList) DeepCopyInto ¶
func (in *HorizontalPodAutoscalerTraitList) DeepCopyInto(out *HorizontalPodAutoscalerTraitList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*HorizontalPodAutoscalerTraitList) DeepCopyObject ¶
func (in *HorizontalPodAutoscalerTraitList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type HorizontalPodAutoscalerTraitSpec ¶
type HorizontalPodAutoscalerTraitSpec struct { // minReplicas is the lower limit for the number of replicas to which the autoscaler // can scale down. It defaults to 1 pod. minReplicas is allowed to be 0 if the // alpha feature gate HPAScaleToZero is enabled and at least one Object or External // metric is configured. Scaling is active as long as at least one metric value is // available. // +optional MinReplicas *int32 `json:"minReplicas,omitempty"` // upper limit for the number of pods that can be set by the autoscaler; cannot be smaller than MinReplicas. MaxReplicas int32 `json:"maxReplicas"` // target average CPU utilization (represented as a percentage of requested CPU) over all the pods; // if not specified the default autoscaling policy will be used. // +optional TargetCPUUtilizationPercentage *int32 `json:"targetCPUUtilizationPercentage,omitempty"` // WorkloadReference to the workload this trait applies to. WorkloadReference runtimev1alpha1.TypedReference `json:"workloadRef,omitempty"` }
HorizontalPodAutoscalerTraitSpec defines the desired state of HorizontalPodAutoscalerTrait
func (*HorizontalPodAutoscalerTraitSpec) DeepCopy ¶
func (in *HorizontalPodAutoscalerTraitSpec) DeepCopy() *HorizontalPodAutoscalerTraitSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new HorizontalPodAutoscalerTraitSpec.
func (*HorizontalPodAutoscalerTraitSpec) DeepCopyInto ¶
func (in *HorizontalPodAutoscalerTraitSpec) DeepCopyInto(out *HorizontalPodAutoscalerTraitSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type HorizontalPodAutoscalerTraitStatus ¶
type HorizontalPodAutoscalerTraitStatus struct { runtimev1alpha1.ConditionedStatus `json:",inline"` // Resources managed by this service trait Resources []runtimev1alpha1.TypedReference `json:"resources,omitempty"` }
HorizontalPodAutoscalerTraitStatus defines the observed state of HorizontalPodAutoscalerTrait
func (*HorizontalPodAutoscalerTraitStatus) DeepCopy ¶
func (in *HorizontalPodAutoscalerTraitStatus) DeepCopy() *HorizontalPodAutoscalerTraitStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new HorizontalPodAutoscalerTraitStatus.
func (*HorizontalPodAutoscalerTraitStatus) DeepCopyInto ¶
func (in *HorizontalPodAutoscalerTraitStatus) DeepCopyInto(out *HorizontalPodAutoscalerTraitStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.