Documentation ¶
Overview ¶
Package kpa implements a kubernetes controller which tracks revisions and notifies a callback interface.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetScaleBounds ¶
func GetScaleBounds(asConfig *autoscalerconfig.Config, pa *autoscalingv1alpha1.PodAutoscaler, spa *autoscalingv1.StagePodAutoscaler) (int32, int32)
GetScaleBounds returns the min and the max scales for the current stage.
func NewController ¶
func NewController( ctx context.Context, cmw configmap.Watcher, deciders resources.Deciders, ) *controller.Impl
NewController returns a new KPA reconcile controller. TODO(mattmoor): Fix the signature to adhere to the injection type.
Types ¶
type Reconciler ¶
type Reconciler struct { *areconciler.Base // contains filtered or unexported fields }
Reconciler tracks PAs and right sizes the ScaleTargetRef based on the information from Deciders.
func (*Reconciler) ObserveDeletion ¶
func (c *Reconciler) ObserveDeletion(ctx context.Context, key types.NamespacedName) error
ObserveDeletion implements OnDeletionInterface.ObserveDeletion.
func (*Reconciler) ReconcileKind ¶
func (c *Reconciler) ReconcileKind(ctx context.Context, pa *autoscalingv1alpha1.PodAutoscaler) pkgreconciler.Event
ReconcileKind implements Interface.ReconcileKind.
Click to show internal directories.
Click to hide internal directories.