autoscaler

package
v0.46.0 Latest Latest
Warning

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

Go to latest
Published: Sep 7, 2022 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

View Source
const (
	SIMPLE_HPA             = "simple_hpa"
	CLOWD_API_VERSION      = "clowd.redhat.com/v1alpha1"
	CLOWD_KIND             = "ClowdApp"
	DEPLOYMENT_API_VERSION = "apps/v1"
	DEPLOYMENT_KIND        = "Deployment"
)
View Source
const ENABLED = "enabled"
View Source
const KEDA = "keda"

Variables

View Source
var CoreAutoScaler = rc.NewMultiResourceIdent(ProvName, "core_autoscaler", &keda.ScaledObject{})

CoreAutoScaler is the config that is presented as the cdappconfig.json file.

View Source
var ProvName = "autoscaler"

ProvName sets the provider name identifier

Functions

func GetAutoScaler

func GetAutoScaler(c *p.Provider) (p.ClowderProvider, error)

GetAutoscaler returns the correct end provider.

func NewAutoScaleProviderRouter added in v0.43.0

func NewAutoScaleProviderRouter(p *providers.Provider) (providers.ClowderProvider, error)

func NewNoneAutoScalerProvider added in v0.24.0

func NewNoneAutoScalerProvider(p *providers.Provider) (providers.ClowderProvider, error)

NewNoneDBProvider returns a new none db provider object.

func ProvideKedaAutoScaler added in v0.43.0

func ProvideKedaAutoScaler(app *crd.ClowdApp, c *config.AppConfig, asp *providers.Provider, deployment crd.Deployment) error

func ProvideSimpleAutoScaler added in v0.43.0

func ProvideSimpleAutoScaler(app *crd.ClowdApp, appConfig *config.AppConfig, sp *providers.Provider, deployment crd.Deployment) error

Creates a simple HPA in the resource cache for the deployment and ClowdApp

Types

This section is empty.

Jump to

Keyboard shortcuts

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