From 300d7bd99c042da5a0ba8847c4cd891746eaf3d5 Mon Sep 17 00:00:00 2001 From: Monis Khan Date: Wed, 3 Feb 2021 10:20:27 -0500 Subject: [PATCH] Drop duplicate logic for unversioned type registration Signed-off-by: Monis Khan --- internal/concierge/server/server.go | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) diff --git a/internal/concierge/server/server.go b/internal/concierge/server/server.go index 1dfe8bfd..584a84b6 100644 --- a/internal/concierge/server/server.go +++ b/internal/concierge/server/server.go @@ -229,16 +229,7 @@ func getAggregatedAPIServerScheme(apiGroup string) *runtime.Scheme { scheme := runtime.NewScheme() // add the options to empty v1 - metav1.AddToGroupVersion(scheme, schema.GroupVersion{Version: "v1"}) - - unversioned := schema.GroupVersion{Group: "", Version: "v1"} - scheme.AddUnversionedTypes(unversioned, - &metav1.Status{}, - &metav1.APIVersions{}, - &metav1.APIGroupList{}, - &metav1.APIGroup{}, - &metav1.APIResourceList{}, - ) + metav1.AddToGroupVersion(scheme, metav1.Unversioned) // nothing fancy is required if using the standard group if apiGroup == loginv1alpha1.GroupName {