Switch hpa controller to shared informer

This commit is contained in:
Andy Goldstein
2017-02-09 14:59:19 -05:00
parent 74186d3e06
commit d11aa98c29
6 changed files with 74 additions and 58 deletions

View File

@@ -44,6 +44,7 @@ func startHPAController(ctx ControllerContext) (bool, error) {
hpaClient.Extensions(),
hpaClient.Autoscaling(),
replicaCalc,
ctx.NewInformerFactory.Autoscaling().V1().HorizontalPodAutoscalers(),
ctx.Options.HorizontalPodAutoscalerSyncPeriod.Duration,
).Run(ctx.Stop)
return true, nil