certs: remove always nil error from New signature

This commit is contained in:
Mike Danese
2017-10-23 11:31:10 -07:00
parent 1213f9112b
commit 1181a88cf2
6 changed files with 7 additions and 19 deletions

View File

@@ -54,14 +54,11 @@ func TestCertificateController(t *testing.T) {
return nil
}
controller, err := NewCertificateController(
controller := NewCertificateController(
client,
informerFactory.Certificates().V1beta1().CertificateSigningRequests(),
handler,
)
if err != nil {
t.Fatalf("error creating controller: %v", err)
}
controller.csrsSynced = func() bool { return true }
stopCh := make(chan struct{})