Войти
  • 2981Просмотров
  • 3 года назадОпубликованоCloud Native Skunkworks

Watching Kubernetes custom resources with dynamic informers & golang

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. Links: 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