Documentation ¶
Overview ¶
Package v1alpha2 contains API Schema definitions for the extend v1alpha2 API group +kubebuilder:object:generate=true +groupName=extend.oam.dev
Index ¶
- Variables
- type MetricHPATrait
- func (in *MetricHPATrait) DeepCopy() *MetricHPATrait
- func (in *MetricHPATrait) DeepCopyInto(out *MetricHPATrait)
- func (in *MetricHPATrait) DeepCopyObject() runtime.Object
- func (mht *MetricHPATrait) GetCondition(ct runtimev1alpha1.ConditionType) runtimev1alpha1.Condition
- func (mht *MetricHPATrait) GetWorkloadReference() runtimev1alpha1.TypedReference
- func (mht *MetricHPATrait) SetConditions(c ...runtimev1alpha1.Condition)
- func (mht *MetricHPATrait) SetWorkloadReference(r runtimev1alpha1.TypedReference)
- type MetricHPATraitList
- type MetricHPATraitSpec
- type MetricHPATraitStatus
Constants ¶
This section is empty.
Variables ¶
var ( // GroupVersion is group version used to register these objects GroupVersion = schema.GroupVersion{Group: "extend.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 MetricHPATrait ¶
type MetricHPATrait struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` Spec MetricHPATraitSpec `json:"spec,omitempty"` Status MetricHPATraitStatus `json:"status,omitempty"` }
MetricHPATrait is the Schema for the metrichpatraits API
func (*MetricHPATrait) DeepCopy ¶
func (in *MetricHPATrait) DeepCopy() *MetricHPATrait
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MetricHPATrait.
func (*MetricHPATrait) DeepCopyInto ¶
func (in *MetricHPATrait) DeepCopyInto(out *MetricHPATrait)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*MetricHPATrait) DeepCopyObject ¶
func (in *MetricHPATrait) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
func (*MetricHPATrait) GetCondition ¶
func (mht *MetricHPATrait) GetCondition(ct runtimev1alpha1.ConditionType) runtimev1alpha1.Condition
GetCondition of this MetricHPATrait.
func (*MetricHPATrait) GetWorkloadReference ¶
func (mht *MetricHPATrait) GetWorkloadReference() runtimev1alpha1.TypedReference
GetWorkloadReference of this MetricHPATrait.
func (*MetricHPATrait) SetConditions ¶
func (mht *MetricHPATrait) SetConditions(c ...runtimev1alpha1.Condition)
SetConditions of this MetricHPATrait.
func (*MetricHPATrait) SetWorkloadReference ¶
func (mht *MetricHPATrait) SetWorkloadReference(r runtimev1alpha1.TypedReference)
SetWorkloadReference of this MetricHPATrait.
type MetricHPATraitList ¶
type MetricHPATraitList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` Items []MetricHPATrait `json:"items"` }
MetricHPATraitList contains a list of MetricHPATrait
func (*MetricHPATraitList) DeepCopy ¶
func (in *MetricHPATraitList) DeepCopy() *MetricHPATraitList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MetricHPATraitList.
func (*MetricHPATraitList) DeepCopyInto ¶
func (in *MetricHPATraitList) DeepCopyInto(out *MetricHPATraitList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*MetricHPATraitList) DeepCopyObject ¶
func (in *MetricHPATraitList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type MetricHPATraitSpec ¶
type MetricHPATraitSpec struct { // +optional PollingInterval *int32 `json:"pollingInterval,omitempty"` // +optional CooldownPeriod *int32 `json:"cooldownPeriod,omitempty"` // +optional MinReplicaCount *int32 `json:"minReplicaCount,omitempty"` // +optional MaxReplicaCount *int32 `json:"maxReplicaCount,omitempty"` // +optional PromServerAddress string `json:"promServerAddress,omitempty"` PromQuery string `json:"promQuery"` PromThreshold *int32 `json:"promThreshold"` // WorkloadReference to the workload this trait applies to. WorkloadReference runtimev1alpha1.TypedReference `json:"workloadRef,omitempty"` }
MetricHPATraitSpec defines the desired state of MetricHPATrait
func (*MetricHPATraitSpec) DeepCopy ¶
func (in *MetricHPATraitSpec) DeepCopy() *MetricHPATraitSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MetricHPATraitSpec.
func (*MetricHPATraitSpec) DeepCopyInto ¶
func (in *MetricHPATraitSpec) DeepCopyInto(out *MetricHPATraitSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type MetricHPATraitStatus ¶
type MetricHPATraitStatus struct { // INSERT ADDITIONAL STATUS FIELD - define observed state of cluster // Important: Run "make" to regenerate code after modifying this file runtimev1alpha1.ConditionedStatus `json:",inline"` // Resources managed by this trait Resources []runtimev1alpha1.TypedReference `json:"resources,omitempty"` }
MetricHPATraitStatus defines the observed state of MetricHPATrait
func (*MetricHPATraitStatus) DeepCopy ¶
func (in *MetricHPATraitStatus) DeepCopy() *MetricHPATraitStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MetricHPATraitStatus.
func (*MetricHPATraitStatus) DeepCopyInto ¶
func (in *MetricHPATraitStatus) DeepCopyInto(out *MetricHPATraitStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.