Documentation ¶
Index ¶
- type MultiAutoscaler
- func (m *MultiAutoscaler) NeedLeaderElection() bool
- func (m *MultiAutoscaler) Register(modelID string, target types.NamespacedName)
- func (m *MultiAutoscaler) SetupWithManager(mgr ctrl.Manager) error
- func (m *MultiAutoscaler) Start(ctx context.Context) error
- func (m *MultiAutoscaler) Unregister(target types.NamespacedName)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MultiAutoscaler ¶
type MultiAutoscaler struct {
// contains filtered or unexported fields
}
MultiAutoscaler is a controller that manages multiple scalers.
func NewMultiAutoscaler ¶
func NewMultiAutoscaler( k8sClient client.Client, metricsProvider metrics.Provider, config config.AutoscalerConfig, ) *MultiAutoscaler
NewMultiAutoscaler creates a new MultiAutoscaler.
func (*MultiAutoscaler) NeedLeaderElection ¶
func (m *MultiAutoscaler) NeedLeaderElection() bool
NeedLeaderElection implements LeaderElectionRunnable and always returns true.
func (*MultiAutoscaler) Register ¶
func (m *MultiAutoscaler) Register(modelID string, target types.NamespacedName)
Register registers a new scaler for the given runtime.
func (*MultiAutoscaler) SetupWithManager ¶
func (m *MultiAutoscaler) SetupWithManager(mgr ctrl.Manager) error
SetupWithManager sets up the multi-autoscaler with the Manager.
func (*MultiAutoscaler) Start ¶
func (m *MultiAutoscaler) Start(ctx context.Context) error
Start starts the multi-autoscaler.
func (*MultiAutoscaler) Unregister ¶
func (m *MultiAutoscaler) Unregister(target types.NamespacedName)
Unregister unregisters the scaler for the given runtime.
Click to show internal directories.
Click to hide internal directories.