controllers

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: 19 Imported by: 0

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) Reconcile

func (*HorizontalPodAutoscalerTraitReconciler) SetupWithManager

func (r *HorizontalPodAutoscalerTraitReconciler) SetupWithManager(mgr ctrl.Manager) error

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL