From f849531fe27bf0cca5a8c3083da2fe8dd283b002 Mon Sep 17 00:00:00 2001 From: David Eads Date: Tue, 24 Apr 2018 08:21:23 -0400 Subject: [PATCH] eliminate indirection from type registration Kubernetes-commit: e7fbbe0e3c91f34836b999e695aa133503cfdae5 --- pkg/apis/clientauthentication/install/install.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkg/apis/clientauthentication/install/install.go b/pkg/apis/clientauthentication/install/install.go index 40093e97..f1b5ddeb 100644 --- a/pkg/apis/clientauthentication/install/install.go +++ b/pkg/apis/clientauthentication/install/install.go @@ -27,7 +27,7 @@ import ( ) // Install registers the API group and adds types to a scheme -func Install(groupFactoryRegistry announced.APIGroupFactoryRegistry, registry *registered.APIRegistrationManager, scheme *runtime.Scheme) { +func Install(registry *registered.APIRegistrationManager, scheme *runtime.Scheme) { if err := announced.NewGroupMetaFactory( &announced.GroupMetaFactoryArgs{ GroupName: clientauthentication.GroupName, @@ -37,7 +37,7 @@ func Install(groupFactoryRegistry announced.APIGroupFactoryRegistry, registry *r announced.VersionToSchemeFunc{ v1alpha1.SchemeGroupVersion.Version: v1alpha1.AddToScheme, }, - ).Announce(groupFactoryRegistry).RegisterAndEnable(registry, scheme); err != nil { + ).Register(registry, scheme); err != nil { panic(err) } }