cmd/swarm: add flag for application name (swarm or swarm-private) (#18189)

* cmd/swarm: add flag for application name (swarm or swarm-private)

* cmd/swarm/swarm-smoke: return correct exit code

* cmd/swarm/swarm-smoke: remove colorable

* remove swarm/grafana_dashboards
This commit is contained in:
Anton Evangelatov
2018-11-29 17:43:15 +01:00
committed by Péter Szilágyi
parent 01371469e6
commit 7e7781ffaa
5 changed files with 14 additions and 5483 deletions

View File

@ -29,6 +29,7 @@ var (
endpoints []string
includeLocalhost bool
cluster string
appName string
scheme string
filesize int
from int
@ -49,6 +50,12 @@ func main() {
Usage: "cluster to point to (prod or a given namespace)",
Destination: &cluster,
},
cli.StringFlag{
Name: "app",
Value: "swarm",
Usage: "application to point to (swarm or swarm-private)",
Destination: &appName,
},
cli.IntFlag{
Name: "cluster-from",
Value: 8501,
@ -107,5 +114,6 @@ func main() {
err := app.Run(os.Args)
if err != nil {
log.Error(err.Error())
os.Exit(1)
}
}