From 847e0c22d4a1cff4d86ff6dd6909b44078e82065 Mon Sep 17 00:00:00 2001 From: Vincent Demeester Date: Mon, 2 Jul 2018 15:00:19 +0200 Subject: [PATCH] Remove composefiles lenght check on k8s RunDeploy.. The compose file(s) are already loaded at that point. Signed-off-by: Vincent Demeester --- cli/command/stack/kubernetes/deploy.go | 5 ----- 1 file changed, 5 deletions(-) diff --git a/cli/command/stack/kubernetes/deploy.go b/cli/command/stack/kubernetes/deploy.go index 94776cf03c..0f02185166 100644 --- a/cli/command/stack/kubernetes/deploy.go +++ b/cli/command/stack/kubernetes/deploy.go @@ -8,16 +8,11 @@ import ( "github.com/docker/cli/cli/command/stack/options" composetypes "github.com/docker/cli/cli/compose/types" "github.com/morikuni/aec" - "github.com/pkg/errors" ) // RunDeploy is the kubernetes implementation of docker stack deploy func RunDeploy(dockerCli *KubeCli, opts options.Deploy, cfg *composetypes.Config) error { cmdOut := dockerCli.Out() - // Check arguments - if len(opts.Composefiles) == 0 { - return errors.Errorf("Please specify only one compose file (with --compose-file).") - } // Initialize clients composeClient, err := dockerCli.composeClient()