Feature flag to enable/disable canary + optional prometheus install (#937)
This commit is contained in:
@@ -19,8 +19,8 @@ import (
|
||||
"github.com/fission/fission/timer"
|
||||
)
|
||||
|
||||
func runController(port int, prometheusSvc string) {
|
||||
controller.Start(port, prometheusSvc)
|
||||
func runController(port int) {
|
||||
controller.Start(port, false)
|
||||
log.Fatalf("Error: Controller exited.")
|
||||
}
|
||||
|
||||
@@ -114,7 +114,7 @@ Use it to start one or more of the fission servers:
|
||||
backends.
|
||||
|
||||
Usage:
|
||||
fission-bundle --controllerPort=<port> --prometheusSvc=<url>
|
||||
fission-bundle --controllerPort=<port>
|
||||
fission-bundle --routerPort=<port> [--executorUrl=<url>]
|
||||
fission-bundle --executorPort=<port> [--namespace=<namespace>] [--fission-namespace=<namespace>]
|
||||
fission-bundle --kubewatcher [--routerUrl=<url>]
|
||||
@@ -125,7 +125,6 @@ Usage:
|
||||
fission-bundle --version
|
||||
Options:
|
||||
--controllerPort=<port> Port that the controller should listen on.
|
||||
--prometheusSvc=<url> Service endpoint of prometheus server
|
||||
--routerPort=<port> Port that the router should listen on.
|
||||
--executorPort=<port> Port that the executor should listen on.
|
||||
--storageServicePort=<port> Port that the storage service should listen on.
|
||||
@@ -154,11 +153,10 @@ Options:
|
||||
executorUrl := getStringArgWithDefault(arguments["--executorUrl"], "http://executor.fission")
|
||||
routerUrl := getStringArgWithDefault(arguments["--routerUrl"], "http://router.fission")
|
||||
storageSvcUrl := getStringArgWithDefault(arguments["--storageSvcUrl"], "http://storagesvc.fission")
|
||||
prometheusSvcUrl := getStringArgWithDefault(arguments["--prometheusSvc"], "")
|
||||
|
||||
if arguments["--controllerPort"] != nil {
|
||||
port := getPort(arguments["--controllerPort"])
|
||||
runController(port, prometheusSvcUrl)
|
||||
runController(port)
|
||||
}
|
||||
|
||||
if arguments["--routerPort"] != nil {
|
||||
|
||||
Reference in New Issue
Block a user