Create role/role binding/service account required for builder/function pods (#2667)

* service account changes for fission-builder
* moved code into executor
* changed default timing to 30 min
* code refactor and add new roles for executor
* create role if serviceAccountCheck is enabled
This commit is contained in:
Shubham Bansal
2022-12-14 09:06:20 +05:30
committed by GitHub
parent 5fae765323
commit 16cbb87eab
5 changed files with 343 additions and 0 deletions
+2
View File
@@ -386,6 +386,8 @@ func StartExecutor(ctx context.Context, logger *zap.Logger, port int) error {
return err
}
utils.CreateMissingPermissionForSA(ctx, kubernetesClient, logger)
go metrics.ServeMetrics(ctx, logger)
go api.Serve(ctx, port)