编程知识 cdmana.com

k8s 事件监听

资源监听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

Scroll to Top