Debugging Drama with Kubernetes Operators
summary
Claims TDD is used as a communication tool and the team builds a Kubernetes operator that turns markdown into PDFs by defining a CRD to convert markdown into PDF and writing failing tests first. Implementation uses Kubebuilder-style scaffolding, envtest/mtest for in-memory Kubernetes, a batchv1 Job named doc-job pattern (job name = resource name + -job), a pandoc-based container with base64 payload, and explicit tests for empty-text failure. Code runs locally on a laptop cluster and created jobs and PDFs successfully.
AI-written summary · about
chapters (13)
- 0:00Introduction to debugging drama
- 1:52Meet the speaker
- 2:36Test driven development explained
- 4:00Defining the problem
- 8:34Execution plan for solution
- 14:20Writing first failing test
- 16:30Implementing minimal production code
- 19:01Third TDD rule explained
- 20:47Handling edge cases
- 23:18Cleanup and deletion scenarios
- 25:06Benefits of test driven development
- 25:28TDD cycle walkthrough
- 29:48Closing and resources
