Skip to content

Commit

Permalink
Merge pull request #20734 from deads2k/cli-03-install
Browse files Browse the repository at this point in the history
use upstream install function
  • Loading branch information
openshift-merge-robot authored Aug 24, 2018
2 parents 81f26a4 + c28d97c commit 8ccc7e1
Show file tree
Hide file tree
Showing 4 changed files with 31 additions and 11 deletions.
5 changes: 0 additions & 5 deletions cmd/oc/oc.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,6 @@ import (
"k8s.io/kubernetes/pkg/kubectl/scheme"

"github.com/openshift/api"
"github.com/openshift/api/authorization"
"github.com/openshift/api/quota"
"github.com/openshift/library-go/pkg/serviceability"
"github.com/openshift/origin/pkg/api/install"
"github.com/openshift/origin/pkg/api/legacy"
Expand All @@ -35,9 +33,6 @@ func main() {
// the kubectl scheme expects to have all the recognizable external types it needs to consume. Install those here.
api.Install(scheme.Scheme)
legacy.InstallExternalLegacyAll(scheme.Scheme)
// TODO fix up the install for the "all types"
authorization.Install(scheme.Scheme)
quota.Install(scheme.Scheme)

// the legacyscheme is used in kubectl and expects to have the internal types registered. Explicitly wire our types here.
// this does
Expand Down
16 changes: 11 additions & 5 deletions glide.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 4 additions & 1 deletion vendor/github.com/openshift/api/install.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 8ccc7e1

Please sign in to comment.