Merge pull request #1174 from thaJeztah/18.06-backport-no-need-to-check-files

[18.06] Remove composefiles lenght check on k8s RunDeploy..
This commit is contained in:
Sebastiaan van Stijn 2018-07-05 16:35:54 +02:00 committed by GitHub
commit a7c8c474b9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 0 additions and 5 deletions

View File

@ -8,16 +8,11 @@ import (
"github.com/docker/cli/cli/command/stack/options" "github.com/docker/cli/cli/command/stack/options"
composetypes "github.com/docker/cli/cli/compose/types" composetypes "github.com/docker/cli/cli/compose/types"
"github.com/morikuni/aec" "github.com/morikuni/aec"
"github.com/pkg/errors"
) )
// RunDeploy is the kubernetes implementation of docker stack deploy // RunDeploy is the kubernetes implementation of docker stack deploy
func RunDeploy(dockerCli *KubeCli, opts options.Deploy, cfg *composetypes.Config) error { func RunDeploy(dockerCli *KubeCli, opts options.Deploy, cfg *composetypes.Config) error {
cmdOut := dockerCli.Out() cmdOut := dockerCli.Out()
// Check arguments
if len(opts.Composefiles) == 0 {
return errors.Errorf("Please specify only one compose file (with --compose-file).")
}
// Initialize clients // Initialize clients
composeClient, err := dockerCli.composeClient() composeClient, err := dockerCli.composeClient()