v1alpha2

package
v0.0.0-...-a67e8b1 Latest Latest
Warning

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

Go to latest
Published: Apr 14, 2022 License: Apache-2.0 Imports: 6 Imported by: 0

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

Constants

This section is empty.

Variables

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

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

func (*HorizontalPodAutoscalerTrait) DeepCopyInto

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

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

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

func (*HorizontalPodAutoscalerTraitList) DeepCopyInto

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

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

func (*HorizontalPodAutoscalerTraitSpec) DeepCopyInto

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

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

func (*HorizontalPodAutoscalerTraitStatus) 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