Bugfix in fission-bundle arg parsing
This commit is contained in:
@@ -87,6 +87,7 @@ Options:
|
|||||||
--etcdUrl=<etcdUrl> Etcd URL.
|
--etcdUrl=<etcdUrl> Etcd URL.
|
||||||
--filepath=<filepath> Directory to store functions in.
|
--filepath=<filepath> Directory to store functions in.
|
||||||
--namespace=<namespace> Kubernetes namespace in which to run function containers. Defaults to 'fission-function'.
|
--namespace=<namespace> Kubernetes namespace in which to run function containers. Defaults to 'fission-function'.
|
||||||
|
--kubewatcher Start Kubernetes events watcher.
|
||||||
`
|
`
|
||||||
arguments, err := docopt.Parse(usage, nil, true, "fission-bundle", false)
|
arguments, err := docopt.Parse(usage, nil, true, "fission-bundle", false)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
@@ -115,7 +116,7 @@ Options:
|
|||||||
runPoolmgr(port, controllerUrl, namespace)
|
runPoolmgr(port, controllerUrl, namespace)
|
||||||
}
|
}
|
||||||
|
|
||||||
if arguments["--kubewatcher"] != nil {
|
if arguments["--kubewatcher"] == true {
|
||||||
runKubeWatcher(controllerUrl, routerUrl)
|
runKubeWatcher(controllerUrl, routerUrl)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user