~/talk

Testing Kubernetes CRDs

Talkat KubeCon + CloudNativeCon China 2018 · 2018-11-13..11-15· [testing]
links:none on file
slides:none on file

Practical checklist for CRD testing: use client-go fakes or the kubebuilder generated test harness to run integration tests without a real cluster, run a few end-to-end tests against a real cluster (use go build tags to exclude slow e2e), create a namespace per test and catch interrupts for cleanup, poll with pollImmediate for eventual consistency, aim for about 80% coverage, factor business logic into a functional core and keep controller code as an imperative shell so most behavior is unit-testable.

AI-written summary · about

  1. 0:00Introduction
  2. 1:01Platforms and CRDs
  3. 2:59The testing pyramid
  4. 3:43End-to-end testing
  5. 10:02Integration testing
  6. 14:26Unit testing
  7. 18:40Summary and takeaways
  8. 19:08Q&A session
~/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.