layer1: add managed watcher config

This commit is contained in:
Naeel
2026-04-26 11:02:09 +03:00
parent b9236698f3
commit d2ff55f9e0
7 changed files with 89 additions and 12 deletions
+6 -1
View File
@@ -71,7 +71,12 @@ import (
"github.com/fission/fission/pkg/utils"
"github.com/fission/fission/pkg/utils/manager"
)
_, err := utils.RunManagedNamespaceWatcher(ctx, logger, kubernetesClient, mgr, utils.ManagedNamespaceWatcherConfig{
Component: "multitenant.NSWatcher",
Namespaces: utils.DefaultNSResolver().Snapshot(),
RemovalStrategy: utils.NamespaceRemovalStrategyTrackOnly,
Subscriber: NewNamespaceSubscriber(logger, kubernetesClient, executorTypes, mgr),
})
// StartNSWatcher registers a Kubernetes Namespace Informer that reacts immediately
// when a Namespace with label fission.io/managed=true is created or relabeled.
//