autoscaler

package
v0.90.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const (
	ClowdAPIVersion      = "clowd.redhat.com/v1alpha1"
	ClowdKind            = "ClowdApp"
	DeploymentAPIVersion = "apps/v1"
	DeploymentKind       = "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

View Source
var SimpleAutoScaler = rc.NewMultiResourceIdent(ProvName, "simple_hpa", &v2.HorizontalPodAutoscaler{})

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