From 75a195d188514dcf9db7df307aacc85b1cbaabfb Mon Sep 17 00:00:00 2001 From: David Eads Date: Tue, 14 Aug 2018 16:19:17 -0400 Subject: [PATCH] expose external type installation for configapi --- pkg/cmd/server/apis/config/v1/register.go | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/pkg/cmd/server/apis/config/v1/register.go b/pkg/cmd/server/apis/config/v1/register.go index 196b421373f8..8eca61ac1a79 100644 --- a/pkg/cmd/server/apis/config/v1/register.go +++ b/pkg/cmd/server/apis/config/v1/register.go @@ -5,6 +5,7 @@ import ( "k8s.io/apimachinery/pkg/runtime/schema" coreinternalconversions "k8s.io/kubernetes/pkg/apis/core" + buildv1 "github.com/openshift/api/build/v1" buildinternalconversions "github.com/openshift/origin/pkg/build/apis/build/v1" "github.com/openshift/origin/pkg/cmd/server/apis/config" ) @@ -23,6 +24,12 @@ var ( addDefaultingFuncs, ) InstallLegacy = legacySchemeBuilder.AddToScheme + + externalLegacySchemeBuilder = runtime.NewSchemeBuilder( + addKnownTypesToLegacy, + buildv1.Install, + ) + InstallLegacyExternal = externalLegacySchemeBuilder.AddToScheme ) // Adds the list of known types to api.Scheme.