Enabling multi-tenancy for fission objects. (#655)
This feature allows creation of fission objects in different namespaces, in addition to retaining the existing behavior of creating fission objects in default namespace if user doesnt provide one. It also removes cluster admin roles for fission-fetcher and fission-builder Service Accounts and grants them only those privileges that they need.
This commit is contained in:
@@ -29,8 +29,8 @@ func runRouter(port int, executorUrl string) {
|
||||
log.Fatalf("Error: Router exited.")
|
||||
}
|
||||
|
||||
func runExecutor(port int, fissionNamespace, functionNamespace string) {
|
||||
err := executor.StartExecutor(fissionNamespace, functionNamespace, port)
|
||||
func runExecutor(port int, fissionNamespace, functionNamespace, envBuilderNamespace string) {
|
||||
err := executor.StartExecutor(fissionNamespace, functionNamespace, envBuilderNamespace, port)
|
||||
if err != nil {
|
||||
log.Fatalf("Error starting executor: %v", err)
|
||||
}
|
||||
@@ -166,7 +166,7 @@ Options:
|
||||
|
||||
if arguments["--executorPort"] != nil {
|
||||
port := getPort(arguments["--executorPort"])
|
||||
runExecutor(port, fissionNs, functionNs)
|
||||
runExecutor(port, fissionNs, functionNs, envBuilderNs)
|
||||
}
|
||||
|
||||
if arguments["--kubewatcher"] == true {
|
||||
|
||||
Reference in New Issue
Block a user