autoscaler

package
v0.12.1 Latest Latest
Warning

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

Go to latest
Published: Apr 21, 2024 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Autoscaler

type Autoscaler interface {
	Reconcile() (*autoscalingv2.HorizontalPodAutoscaler, error)
	SetControllerReferences(owner metav1.Object, scheme *runtime.Scheme) error
}

Autoscaler Interface implemented by all autoscalers

type AutoscalerReconciler

type AutoscalerReconciler struct {
	Autoscaler Autoscaler
	// contains filtered or unexported fields
}

AutoscalerReconciler is the struct of Raw K8S Object

func NewAutoscalerReconciler

func NewAutoscalerReconciler(client client.Client,
	scheme *runtime.Scheme,
	componentMeta metav1.ObjectMeta,
	componentExt *v1beta1.ComponentExtensionSpec) (*AutoscalerReconciler, error)

func (*AutoscalerReconciler) Reconcile

func (r *AutoscalerReconciler) Reconcile() error

Reconcile ...

type NoOpAutoscaler added in v0.12.0

type NoOpAutoscaler struct{}

NoOpAutoscaler Autoscaler that does nothing. Can be used to disable creation of autoscaler resources.

func (*NoOpAutoscaler) Reconcile added in v0.12.0

func (*NoOpAutoscaler) SetControllerReferences added in v0.12.0

func (a *NoOpAutoscaler) SetControllerReferences(owner metav1.Object, scheme *runtime.Scheme) error

Jump to

Keyboard shortcuts

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