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
+7
View File
@@ -81,6 +81,13 @@ type NamespaceManagerSummary struct {
Subscribers []string
}
type ManagedNamespaceWatcherConfig struct {
Component string
Namespaces []string
RemovalStrategy NamespaceRemovalStrategy
Subscriber NamespaceSubscriber
}
func NewNamespaceEvent(eventType NamespaceEventType, name string, labels map[string]string, source NamespaceSource, observedAt time.Time) NamespaceEvent {
return NamespaceEvent{
Type: eventType,