Documentation ¶
Index ¶
Constants ¶
View Source
const ( KindHPA = "HorizontalPodAutoscaler" KindDeployment = "Deployment" KindStatefulSet = "StatefulSet" GVKDeployment = "apps/v1, Kind=Deployment" GVKStatefulSet = "apps/v1, Kind=StatefulSet" LabelKey = "hpatrait.oam.crossplane.io" )
Variables ¶
View Source
var (
GroupVersionHPA = autoscalingv1.SchemeGroupVersion.String()
)
Functions ¶
func DetermineWorkloadType ¶
func DetermineWorkloadType(ctx context.Context, log logr.Logger, r client.Reader, workload *unstructured.Unstructured) ([]*unstructured.Unstructured, error)
Determine whether the workload is K8S native resources or oam WorkloadDefinition
Types ¶
type HorizontalPodAutoscalerTraitReconciler ¶
type HorizontalPodAutoscalerTraitReconciler struct { client.Client Log logr.Logger Scheme *runtime.Scheme }
HorizontalPodAutoscalerTraitReconciler reconciles a HorizontalPodAutoscalerTrait object
func (*HorizontalPodAutoscalerTraitReconciler) SetupWithManager ¶
func (r *HorizontalPodAutoscalerTraitReconciler) SetupWithManager(mgr ctrl.Manager) error
Click to show internal directories.
Click to hide internal directories.