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:
smruthi2187
2018-05-23 13:22:46 -07:00
committed by GitHub
parent b56359ab19
commit 2444e673ef
61 changed files with 1958 additions and 493 deletions
+3 -3
View File
@@ -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 {