From 7550893a5f73fe8d4c64caa189dc80654e61d08d Mon Sep 17 00:00:00 2001 From: Fabiano Franz Date: Wed, 9 Aug 2017 14:15:26 -0300 Subject: [PATCH] Enable plugins in oc --- pkg/oc/cli/cli.go | 1 + pkg/oc/cli/cmd/wrappers.go | 4 ++++ pkg/oc/cli/kubectl_compat_test.go | 1 - 3 files changed, 5 insertions(+), 1 deletion(-) diff --git a/pkg/oc/cli/cli.go b/pkg/oc/cli/cli.go index 6dc5b32b80af..58f4e9ed5e4f 100644 --- a/pkg/oc/cli/cli.go +++ b/pkg/oc/cli/cli.go @@ -200,6 +200,7 @@ func NewCommandCLI(name, fullName string, in io.Reader, out, errout io.Writer) * experimental.AddCommand() cmds.AddCommand(experimental) + cmds.AddCommand(cmd.NewCmdPlugin(fullName, f, in, out, errout)) if name == fullName { cmds.AddCommand(cmd.NewCmdVersion(fullName, f, out, cmd.VersionOptions{PrintClientFeatures: true})) } diff --git a/pkg/oc/cli/cmd/wrappers.go b/pkg/oc/cli/cmd/wrappers.go index 57404e02f8fb..27e9a4b88bf8 100644 --- a/pkg/oc/cli/cmd/wrappers.go +++ b/pkg/oc/cli/cmd/wrappers.go @@ -757,3 +757,7 @@ func NewCmdAuth(fullName string, f *clientcmd.Factory, out, errout io.Writer) *c cmd := kcmdauth.NewCmdAuth(f, out, errout) return cmd } + +func NewCmdPlugin(fullName string, f *clientcmd.Factory, in io.Reader, out, errout io.Writer) *cobra.Command { + return kcmd.NewCmdPlugin(f, in, out, errout) +} diff --git a/pkg/oc/cli/kubectl_compat_test.go b/pkg/oc/cli/kubectl_compat_test.go index 8f6420c697e1..2d902d4cdccd 100644 --- a/pkg/oc/cli/kubectl_compat_test.go +++ b/pkg/oc/cli/kubectl_compat_test.go @@ -32,7 +32,6 @@ var MissingCommands = sets.NewString( // TODO commands to assess "apiversions", "clusterinfo", - "plugin", "resize", "rollingupdate", "run-container",