layer1: add managed watcher config
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user