controllers

package
v0.0.0-...-f5c4570 Latest Latest
Warning

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

Go to latest
Published: Jul 4, 2022 License: Apache-2.0 Imports: 26 Imported by: 0

Documentation

Index

Constants

View Source
const (
	SpecWarningTargetWorkloadNotSet = "Spec.targetWorkload is not set"
	SpecWarningStartAtTimeFormat    = "startAt is not in the right format, which should be like `12:01`"
)
View Source
const (
	CPUType              v1alpha1.TriggerType = "cpu"
	MemoryType           v1alpha1.TriggerType = "memory"
	StorageType          v1alpha1.TriggerType = "storage"
	EphemeralStorageType v1alpha1.TriggerType = "ephemeral-storage"
	CronType             v1alpha1.TriggerType = "cron"
)

Variables

View Source
var ReconcileWaitResult = reconcile.Result{RequeueAfter: 30 * time.Second}

ReconcileWaitResult is the time to wait between reconciliation.

Functions

This section is empty.

Types

type AutoscalerReconciler

type AutoscalerReconciler struct {
	client.Client
	Log    logr.Logger
	Scheme *runtime.Scheme
	// contains filtered or unexported fields
}

AutoscalerReconciler reconciles a Autoscaler object

func (*AutoscalerReconciler) Reconcile

func (r *AutoscalerReconciler) Reconcile(req ctrl.Request) (ctrl.Result, error)

+kubebuilder:rbac:groups=standard.oam.dev,resources=autoscalers,verbs=get;list;watch;create;update;patch;delete +kubebuilder:rbac:groups=standard.oam.dev,resources=autoscalers/status,verbs=get;update;patch

func (*AutoscalerReconciler) SetupWithManager

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

Jump to

Keyboard shortcuts

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