~/talk

The Soul of a New Command: Adding ‘Events’ to kubectl

slides:none on file

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

  1. 0:00Start
  2. 3:39Events Are Kubernetes Objects
  3. 15:03Create a Command Object
  4. 18:21Make a Api Server Request
  5. 19:38Chunking
  6. 21:49Api Resources
  7. 26:07Execute My Query
  8. 28:54A Timeline of Events
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.