Documentation
¶
Index ¶
- type ConfigWatcher
- func (w *ConfigWatcher) FilterByNode(configMaps []*corev1.ConfigMap) []*corev1.ConfigMap
- func (w *ConfigWatcher) GetConfigurations(ctx context.Context) (map[string]string, error)
- func (w *ConfigWatcher) ProcessEvent(event watch.Event)
- func (w *ConfigWatcher) Start(ctx context.Context, ch chan<- *corev1.ConfigMap) error
- func (w *ConfigWatcher) Stop()
- func (w *ConfigWatcher) WatchConfigurations(ctx context.Context) (<-chan *corev1.ConfigMap, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ConfigWatcher ¶
type ConfigWatcher struct {
// contains filtered or unexported fields
}
ConfigWatcher watches for ConfigMap changes containing TN slice configurations
func NewConfigWatcher ¶
func NewConfigWatcher(kubeClient kubernetes.Interface, namespace, nodeName string) *ConfigWatcher
NewConfigWatcher creates a new configuration watcher
func (*ConfigWatcher) FilterByNode ¶
func (w *ConfigWatcher) FilterByNode(configMaps []*corev1.ConfigMap) []*corev1.ConfigMap
FilterByNode filters ConfigMaps by node label
func (*ConfigWatcher) GetConfigurations ¶
GetConfigurations retrieves all configurations for this node
func (*ConfigWatcher) ProcessEvent ¶
func (w *ConfigWatcher) ProcessEvent(event watch.Event)
ProcessEvent processes watch events manually (for testing)
func (*ConfigWatcher) Stop ¶
func (w *ConfigWatcher) Stop()
Stop stops the watcher (informer stops when context is cancelled)
func (*ConfigWatcher) WatchConfigurations ¶
WatchConfigurations watches for configuration changes
Click to show internal directories.
Click to hide internal directories.