Watching Kubernetes custom resources with dynamic informers & golang

preview_player
Показать описание
Written your first golang operator? Monitoring your resources with GETS/Lists and reconciles? Check out this video on how to use the event stream to optimise the way you receive updates in cluster.
Complete with walk-through implementation and advice!
Let me know what you think.

Timecodes:
0:00 Introduction
1:58 client-go, reflection & informers
3:28 Project setup
8:14 Targetting your custom resource
10:10 Informer factory
11:30 Adding event handlers
12:57 Downside of auto importing...
14:46 Detecting an updated custom resource
15:19 Casting types
16:37 Conclusion
Рекомендации по теме
Комментарии
Автор

Thank you! this is much better than using a regular informer and having to write a rest client for your custom resource.

EtienneMcDuff
Автор

Great video, as usual! The dynamic informer is interessting and I need to try it out on the next k8s controller I write!

dirien
Автор

Great content Alex 💯, mind if I ask which keyboard you using? Really digging the typing sound.

karanbir
Автор

Hi, for the handlers defined, does it show the updates for all the custom resources of that type? What if I am interested in watching updates for one specific custom resource (ie. one instance of a CRD, where I could have several of them )

BhargavTheertham