Documentation ¶
Index ¶
- Constants
- Variables
- func GetAutoScaler(c *p.Provider) (p.ClowderProvider, error)
- func NewAutoScaleProviderRouter(p *providers.Provider) (providers.ClowderProvider, error)
- func NewNoneAutoScalerProvider(p *providers.Provider) (providers.ClowderProvider, error)
- func ProvideKedaAutoScaler(app *crd.ClowdApp, c *config.AppConfig, asp *providers.Provider, ...) error
- func ProvideSimpleAutoScaler(app *crd.ClowdApp, appConfig *config.AppConfig, sp *providers.Provider, ...) error
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
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.