Don't manually init issuer helper

Signed-off-by: James Munnelly <james@munnelly.eu>
This commit is contained in:
James Munnelly 2019-07-26 15:12:03 +01:00
parent cee2af6281
commit ff0a2c00a1
2 changed files with 0 additions and 6 deletions

View File

@ -47,7 +47,6 @@ go_test(
"//pkg/acme/fake:go_default_library",
"//pkg/apis/certmanager/v1alpha1:go_default_library",
"//pkg/controller/test:go_default_library",
"//pkg/issuer:go_default_library",
"//test/unit/gen:go_default_library",
"//third_party/crypto/acme:go_default_library",
"//vendor/github.com/kr/pretty:go_default_library",

View File

@ -33,7 +33,6 @@ import (
acmefake "github.com/jetstack/cert-manager/pkg/acme/fake"
"github.com/jetstack/cert-manager/pkg/apis/certmanager/v1alpha1"
testpkg "github.com/jetstack/cert-manager/pkg/controller/test"
"github.com/jetstack/cert-manager/pkg/issuer"
"github.com/jetstack/cert-manager/test/unit/gen"
acmeapi "github.com/jetstack/cert-manager/third_party/crypto/acme"
)
@ -295,10 +294,6 @@ func runTest(t *testing.T, test testT) {
c := &controller{}
c.Register(test.builder.Context)
c.helper = issuer.NewHelper(
test.builder.SharedInformerFactory.Certmanager().V1alpha1().Issuers().Lister(),
test.builder.SharedInformerFactory.Certmanager().V1alpha1().ClusterIssuers().Lister(),
)
c.acmeHelper = &acmefake.Helper{
ClientForIssuerFunc: func(iss v1alpha1.GenericIssuer) (acmecl.Interface, error) {
return test.acmeClient, nil