Error out on orchestrator command that don't support k8s yet

Signed-off-by: Vincent Demeester <vincent@sbr.pm>
This commit is contained in:
Vincent Demeester 2017-12-06 11:15:36 +01:00 committed by Silvin Lubecki
parent ba5d0d8ff5
commit 1a2244e384
5 changed files with 40 additions and 25 deletions

View File

@ -14,7 +14,10 @@ func NewConfigCommand(dockerCli command.Cli) *cobra.Command {
Short: "Manage Docker configs", Short: "Manage Docker configs",
Args: cli.NoArgs, Args: cli.NoArgs,
RunE: command.ShowHelp(dockerCli.Err()), RunE: command.ShowHelp(dockerCli.Err()),
Annotations: map[string]string{"version": "1.30"}, Annotations: map[string]string{
"version": "1.30",
"swarm": "",
},
} }
cmd.AddCommand( cmd.AddCommand(
newConfigListCommand(dockerCli), newConfigListCommand(dockerCli),

View File

@ -18,7 +18,10 @@ func NewNodeCommand(dockerCli command.Cli) *cobra.Command {
Short: "Manage Swarm nodes", Short: "Manage Swarm nodes",
Args: cli.NoArgs, Args: cli.NoArgs,
RunE: command.ShowHelp(dockerCli.Err()), RunE: command.ShowHelp(dockerCli.Err()),
Annotations: map[string]string{"version": "1.24"}, Annotations: map[string]string{
"version": "1.24",
"swarm": "",
},
} }
cmd.AddCommand( cmd.AddCommand(
newDemoteCommand(dockerCli), newDemoteCommand(dockerCli),

View File

@ -14,7 +14,10 @@ func NewSecretCommand(dockerCli command.Cli) *cobra.Command {
Short: "Manage Docker secrets", Short: "Manage Docker secrets",
Args: cli.NoArgs, Args: cli.NoArgs,
RunE: command.ShowHelp(dockerCli.Err()), RunE: command.ShowHelp(dockerCli.Err()),
Annotations: map[string]string{"version": "1.25"}, Annotations: map[string]string{
"version": "1.25",
"swarm": "",
},
} }
cmd.AddCommand( cmd.AddCommand(
newSecretListCommand(dockerCli), newSecretListCommand(dockerCli),

View File

@ -14,7 +14,10 @@ func NewServiceCommand(dockerCli command.Cli) *cobra.Command {
Short: "Manage services", Short: "Manage services",
Args: cli.NoArgs, Args: cli.NoArgs,
RunE: command.ShowHelp(dockerCli.Err()), RunE: command.ShowHelp(dockerCli.Err()),
Annotations: map[string]string{"version": "1.24"}, Annotations: map[string]string{
"version": "1.24",
"swarm": "",
},
} }
cmd.AddCommand( cmd.AddCommand(
newCreateCommand(dockerCli), newCreateCommand(dockerCli),

View File

@ -14,7 +14,10 @@ func NewSwarmCommand(dockerCli command.Cli) *cobra.Command {
Short: "Manage Swarm", Short: "Manage Swarm",
Args: cli.NoArgs, Args: cli.NoArgs,
RunE: command.ShowHelp(dockerCli.Err()), RunE: command.ShowHelp(dockerCli.Err()),
Annotations: map[string]string{"version": "1.24"}, Annotations: map[string]string{
"version": "1.24",
"swarm": "",
},
} }
cmd.AddCommand( cmd.AddCommand(
newInitCommand(dockerCli), newInitCommand(dockerCli),