Back to godoc.org

Package kpa

v0.9.0
Latest Go to latest

The highest tagged major version is .

Published: Sep 16, 2019 | License: Apache-2.0 | Module: github.com/chizhg/serving

Overview

Package kpa implements a kubernetes controller which tracks revisions and notifies a callback interface.

Index

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.

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) Reconcile

func (c *Reconciler) Reconcile(ctx context.Context, key string) error

Reconcile right sizes PA ScaleTargetRefs based on the state of decisions in Deciders.

Package Files

Documentation was rendered with GOOS=linux and GOARCH=amd64.

Jump to identifier

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to identifier