WIP chaos integrate deploy/deploy_composefile

The best in copy/pasta technology.

See https://github.com/docker/cli/tree/master/cli/command/stack/swarm
for more.
This commit is contained in:
2021-09-01 13:08:42 +02:00
parent 45c6be02b1
commit ac86912ead
4 changed files with 326 additions and 57 deletions

View File

@ -6,7 +6,7 @@ import (
"coopcloud.tech/abra/cli/internal"
"coopcloud.tech/abra/client"
"coopcloud.tech/abra/client/swarm"
stack "coopcloud.tech/abra/client/stack"
"coopcloud.tech/abra/config"
"github.com/docker/cli/cli/command/stack/options"
"github.com/sirupsen/logrus"
@ -40,7 +40,7 @@ var appUndeployCommand = &cli.Command{
}
rmOpts := options.Remove{Namespaces: []string{appEnv.StackName()}}
if err := swarm.RunRemove(ctx, cl, rmOpts); err != nil {
if err := stack.RunRemove(ctx, cl, rmOpts); err != nil {
logrus.Fatal(err)
}