podautoscaler

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: May 21, 2025 License: Apache-2.0 Imports: 35 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	DefaultRequeueDuration = 10 * time.Second
)

Functions

func Add

func Add(mgr manager.Manager, runtimeConfig config.RuntimeConfig) error

Add creates a new PodAutoscaler Controller and adds it to the Manager with default RBAC. The Manager will set fields on the Controller and Start it when the Manager is Started.

Types

type PodAutoscalerReconciler

type PodAutoscalerReconciler struct {
	client.Client
	Scheme        *runtime.Scheme
	EventRecorder record.EventRecorder
	Mapper        apimeta.RESTMapper
	AutoscalerMap map[metrics.NamespaceNameMetric]scaler.Scaler // AutoscalerMap maps each NamespaceNameMetric to its corresponding scaler instance.

	RuntimeConfig config.RuntimeConfig
	// contains filtered or unexported fields
}

PodAutoscalerReconciler reconciles a PodAutoscaler object

func (*PodAutoscalerReconciler) Reconcile

func (r *PodAutoscalerReconciler) Reconcile(ctx context.Context, req ctrl.Request) (ctrl.Result, error)

Reconcile is part of the main Kubernetes reconciliation loop which aims to move the current state of the cluster closer to the desired state as specified by the PodAutoscaler resource. It handles the creation, update, and deletion logic for HorizontalPodAutoscalers based on the PodAutoscaler specifications. For more details, check Reconcile and its Result here: - https://pkg.go.dev/sigs.k8s.io/controller-runtime@v0.17.3/pkg/reconcile

func (*PodAutoscalerReconciler) Run

func (r *PodAutoscalerReconciler) Run(ctx context.Context, errChan chan<- error)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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