k8s 事件监听

m0_37294549 2022-08-06 08:08:26 阅读数:969

CSDNk8s事件监听technology-development

资源监听client

client-go/tools/cache/sharedIndexInformer::Run
client-go/tools/cache/controller::Run

list watcher 变化的event
Queue : event 队列
Process : 处理event

cfg := &Config{
Queue: fifo,
ListerWatcher: s.listerWatcher,
ObjectType: s.objectType,
FullResyncPeriod: s.resyncCheckPeriod,
RetryOnError: false,
ShouldResync: s.processor.shouldResync,
Process: s.HandleDeltas,
WatchErrorHandler: s.watchErrorHandler,
}
版权声明:本文为[m0_37294549]所创,转载请带上原文链接,感谢。 https://blog.csdn.net/m0_37294549/article/details/126090039