logic

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Nov 21, 2022 License: Apache-2.0 Imports: 29 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Updater

type Updater interface {
	// RunOnce represents single iteration in the main-loop of Updater.
	RunOnce(context.Context)

	// RunOnceUpdatingDeployment represents single iteration in the main-loop of Updater
	// which does pod eviction and deployment updates.
	RunOnceUpdatingDeployment(context.Context)
}

Updater performs updates on pods if recommended by Multidimensional Pod Autoscaler

func NewUpdater

func NewUpdater(
	kubeClient kube_client.Interface,
	mpaClient *mpa_clientset.Clientset,
	minReplicasForEvicition int,
	evictionRateLimit float64,
	evictionRateBurst int,
	evictionToleranceFraction float64,
	useAdmissionControllerStatus bool,
	statusNamespace string,
	recommendationProcessor mpa_api_util.RecommendationProcessor,
	evictionAdmission priority.PodEvictionAdmission,
	selectorFetcher target.MpaTargetSelectorFetcher,
	priorityProcessor priority.PriorityProcessor,
	namespace string,
) (Updater, error)

NewUpdater creates Updater with given configuration

Jump to

Keyboard shortcuts

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