controllers

package
v0.0.0-...-9421b25 Latest Latest
Warning

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

Go to latest
Published: Nov 7, 2021 License: Apache-2.0 Imports: 19 Imported by: 0

Documentation

Index

Constants

View Source
const (
	LabelKey = "cronhpatrait.oam.crossplane.io"
)

Variables

This section is empty.

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 CronHPATraitReconciler

type CronHPATraitReconciler struct {
	client.Client
	Log    logr.Logger
	Scheme *runtime.Scheme
}

CronHPATraitReconciler reconciles a CronHPATrait object

func (*CronHPATraitReconciler) CronHPAInjector

CronHPAInjector adds a CronHPA object for the resources observed in a workload translation.

func (*CronHPATraitReconciler) Reconcile

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

func (*CronHPATraitReconciler) SetupWithManager

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

Jump to

Keyboard shortcuts

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