Add integration test for ttlcontroller.

This commit is contained in:
Wojciech Tyczynski
2017-02-09 13:52:53 +01:00
parent bc2849b644
commit dcf8a85fdf
4 changed files with 144 additions and 7 deletions

View File

@@ -144,7 +144,7 @@ func startServiceAccountController(ctx ControllerContext) (bool, error) {
func startTTLController(ctx ControllerContext) (bool, error) {
go ttlcontroller.NewTTLController(
ctx.InformerFactory.Nodes(),
ctx.NewInformerFactory.Core().V1().Nodes(),
ctx.ClientBuilder.ClientOrDie("ttl-controller"),
).Run(5, ctx.Stop)
return true, nil