Documentation ¶
Index ¶
- Constants
- func DetermineWorkloadType(ctx context.Context, log logr.Logger, r client.Reader, ...) ([]*unstructured.Unstructured, error)
- type CronHPATraitReconciler
- func (r *CronHPATraitReconciler) CronHPAInjector(ctx context.Context, trait oam.Trait, obj oam.Object) (*v1beta1.CronHorizontalPodAutoscaler, error)
- func (r *CronHPATraitReconciler) Reconcile(req ctrl.Request) (ctrl.Result, error)
- func (r *CronHPATraitReconciler) SetupWithManager(mgr ctrl.Manager) error
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 ¶
CronHPATraitReconciler reconciles a CronHPATrait object
func (*CronHPATraitReconciler) CronHPAInjector ¶
func (r *CronHPATraitReconciler) CronHPAInjector(ctx context.Context, trait oam.Trait, obj oam.Object) (*v1beta1.CronHorizontalPodAutoscaler, error)
CronHPAInjector adds a CronHPA object for the resources observed in a workload translation.
func (*CronHPATraitReconciler) SetupWithManager ¶
func (r *CronHPATraitReconciler) SetupWithManager(mgr ctrl.Manager) error
Click to show internal directories.
Click to hide internal directories.