Skip to content

Commit 70c96cb

Browse files
Merge pull request #20642 from deads2k/cli-01-patch
allow patching configapi using oc patch
2 parents 2e05d26 + 75a195d commit 70c96cb

File tree

2 files changed

+10
-0
lines changed

2 files changed

+10
-0
lines changed

pkg/cmd/server/apis/config/v1/register.go

+7
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ import (
55
"k8s.io/apimachinery/pkg/runtime/schema"
66
coreinternalconversions "k8s.io/kubernetes/pkg/apis/core"
77

8+
buildv1 "github.com/openshift/api/build/v1"
89
buildinternalconversions "github.com/openshift/origin/pkg/build/apis/build/v1"
910
"github.com/openshift/origin/pkg/cmd/server/apis/config"
1011
)
@@ -23,6 +24,12 @@ var (
2324
addDefaultingFuncs,
2425
)
2526
InstallLegacy = legacySchemeBuilder.AddToScheme
27+
28+
externalLegacySchemeBuilder = runtime.NewSchemeBuilder(
29+
addKnownTypesToLegacy,
30+
buildv1.Install,
31+
)
32+
InstallLegacyExternal = externalLegacySchemeBuilder.AddToScheme
2633
)
2734

2835
// Adds the list of known types to api.Scheme.

vendor/k8s.io/kubernetes/cluster/clientbin.sh

+3
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)