Remove references to pkg/controller/informers

This commit is contained in:
Andy Goldstein
2017-02-24 09:52:43 -05:00
parent bd912f50ba
commit 4cd38b863f
9 changed files with 54 additions and 70 deletions

View File

@@ -30,9 +30,9 @@ func startStatefulSetController(ctx ControllerContext) (bool, error) {
return false, nil
}
go statefulset.NewStatefulSetController(
ctx.NewInformerFactory.Core().V1().Pods(),
ctx.NewInformerFactory.Apps().V1beta1().StatefulSets(),
ctx.NewInformerFactory.Core().V1().PersistentVolumeClaims(),
ctx.InformerFactory.Core().V1().Pods(),
ctx.InformerFactory.Apps().V1beta1().StatefulSets(),
ctx.InformerFactory.Core().V1().PersistentVolumeClaims(),
ctx.ClientBuilder.ClientOrDie("statefulset-controller"),
).Run(1, ctx.Stop)
return true, nil