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, client clientset.Interface) (*AutoscalerController, error)
NewAutoscalerController creates a new AutoscalerController.
func (*AutoscalerController) IsDeploymentControlHPA ¶
func (ac *AutoscalerController) IsDeploymentControlHPA(d *appsv1.Deployment) bool
IsDeploymentControlHPA 判断 deployment 是否维护 HPA
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.