From 06cbf60d41fd3b538840ddb5f341d2f327cb2e8a Mon Sep 17 00:00:00 2001
From: baude <bbaude@redhat.com>
Date: Mon, 25 Feb 2019 08:54:11 -0600
Subject: remove duplicate commands in main

kube was erronously being added as main subcommand multiple
times. it should not be a subcommand as it should live under
either play or generate.

also removing the addition of the volume command from the commands.go
to eliminate a duplicate.

Signed-off-by: baude <bbaude@redhat.com>
---
 cmd/podman/commands.go  | 2 --
 cmd/podman/play_kube.go | 2 --
 2 files changed, 4 deletions(-)

diff --git a/cmd/podman/commands.go b/cmd/podman/commands.go
index fef5f1763..53aa62eb9 100644
--- a/cmd/podman/commands.go
+++ b/cmd/podman/commands.go
@@ -17,7 +17,6 @@ func getMainCommands() []*cobra.Command {
 		_diffCommand,
 		_execCommand,
 		_generateCommand,
-		_containerKubeCommand,
 		_playCommand,
 		_psCommand,
 		_loginCommand,
@@ -39,7 +38,6 @@ func getMainCommands() []*cobra.Command {
 		_topCommand,
 		_umountCommand,
 		_unpauseCommand,
-		volumeCommand.Command,
 		_waitCommand,
 	}
 
diff --git a/cmd/podman/play_kube.go b/cmd/podman/play_kube.go
index 9fc06dde9..a59460b71 100644
--- a/cmd/podman/play_kube.go
+++ b/cmd/podman/play_kube.go
@@ -52,8 +52,6 @@ func init() {
 	flags.BoolVarP(&playKubeCommand.Quiet, "quiet", "q", false, "Suppress output information when pulling images")
 	flags.StringVar(&playKubeCommand.SignaturePolicy, "signature-policy", "", "`Pathname` of signature policy file (not usually used)")
 	flags.BoolVar(&playKubeCommand.TlsVerify, "tls-verify", true, "Require HTTPS and verify certificates when contacting registries (default: true)")
-
-	rootCmd.AddCommand(playKubeCommand.Command)
 }
 
 func playKubeYAMLCmd(c *cliconfig.KubePlayValues) error {
-- 
cgit v1.2.3-54-g00ecf