Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AutoscalerController ¶
type AutoscalerController struct {
// contains filtered or unexported fields
}
AutoscalerController is responsible for synchronizing HPA objects stored in the system.
func NewAutoscalerController ¶
func NewAutoscalerController( dInformer appsinformers.DeploymentInformer, hpaInformer autoscalinginformers.HorizontalPodAutoscalerInformer, cmInformer coreinformers.ConfigMapInformer, client clientset.Interface) (*AutoscalerController, error)
NewAutoscalerController creates a new AutoscalerController.
func (*AutoscalerController) IsCustomMetricHPA ¶
func (ac *AutoscalerController) IsCustomMetricHPA(d *appsv1.Deployment) bool
IsCustomMetricHPA 判断 deployment 是否维护自定位指标的 HPA
func (*AutoscalerController) IsDeploymentControlHPA ¶
func (ac *AutoscalerController) IsDeploymentControlHPA(d *appsv1.Deployment) bool
IsDeploymentControlHPA 判断 deployment 是否维护 HPA
func (*AutoscalerController) Notify ¶
func (ac *AutoscalerController) Notify(d *appsv1.Deployment) error
func (*AutoscalerController) Run ¶
func (ac *AutoscalerController) Run(workers int, stopCh <-chan struct{})
Run begins watching and syncing.
Click to show internal directories.
Click to hide internal directories.