~/talk

Building and Maintaining a Client Library - Stories From the Trenches

Talkat KubeCon + CloudNativeCon Europe 2019 · on Thursday, 2019-05-23· at 15:55· Hall 8.1 G1· [developer-experience, api-design]
speakerdeck:jnummelin
slides:none on file

Built a Ruby client library k8s-client that handles real-world Kubernetes quirks: supports external auth hooks (gcloud, EKS), works with clusters back to 1.7, and avoids codegen by treating CRDs as generic resources. Implements a client-side three-way merge using a last-applied annotation and issues RFC-compliant JSON Patch ops because server strategic merge often surprises (e.g., arrays merging into duplicates). Discovery runs on every start (no cache) to pick up new CRDs, drops empty values from stored config, and deliberately keeps no high-level helpers to reduce maintenance.

AI-written summary · about

  1. 0:00Start
  2. 0:58Topics
  3. 2:55Word of "wisdom"
  4. 4:52Open source
  5. 5:58Request processing stages
  6. 7:41Auth is a moving target
  7. 10:00Kubeconfig is hard
  8. 12:09Naïve approach
  9. 13:30Why not just PUT the resource?
  10. 14:44Strategic merge patch
  11. 18:12Server-side apply
  12. 23:51API discovery
~/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.