multi-tenant: EnsureNamespaceSA + ns_watcher SA provisioning (v8)

This commit is contained in:
Naeel
2026-04-26 07:41:46 +03:00
parent 82e1ff76a5
commit 161de70576
24 changed files with 970 additions and 1 deletions
+4
View File
@@ -213,6 +213,10 @@ func Start(ctx context.Context, clientGen crd.ClientGeneratorInterface, logger *
metrics.ServeMetrics(ctx, "router", logger, mgr)
})
// Multi-tenant: watch namespaces labeled fission.io/managed=true
// and dynamically register HTTPTrigger/Function informers without restart.
StartNSWatcher(ctx, logger, kubeClient, triggers, mgr)
logger.Info("starting router", zap.Int("port", port))
tracer := otel.Tracer("router")