The Soul of a New Command: Adding ‘Events’ to kubectl
summary
Adds kubectl alpha events (shipped in Kubernetes 1.23) that actually sorts by event time across two incompatible event APIs (v1 and events.k8s.io/v1), uses Go + Cobra and kubectl builder libraries, pages results to avoid huge responses, and skips delete events when watching so events don’t reappear an hour later. Feature resolves a 2016 issue, required a KEPS/approval path, PR opened Feb 2021 and merged after ~6 months; timeline-based filtering is not implemented yet.
AI-written summary · about
chapters (8)
- 0:00Start
- 3:39Events Are Kubernetes Objects
- 15:03Create a Command Object
- 18:21Make a Api Server Request
- 19:38Chunking
- 21:49Api Resources
- 26:07Execute My Query
- 28:54A Timeline of Events
related talks
17mSIG CLI: Intro and Updates
35mKubernetes SIG CLI: Intro And Updates
25mKubernetes SIG CLI: Intro and Updates
29mWhat's New With Kubectl and Kustomiz...
01h 30mEverything You Always Wanted to Know About SIG-CLI but Were Afraid to Ask
25mEverything you always wanted to know about kubectl
37mIntro: CLI SIG
34mLatest Kubernetes Scalability Improvements
