Lightning Talk: Unit Testing in Go With K8s Clients & APIs: An Intern’s POV on Why I...
summary
Unit testing with Kubernetes fake clients cuts cluster setup time to zero and makes debugging the fastest way to learn a Go + K8s codebase, using informers and controllers to exercise API-driven behavior in isolation. Tests run locally and in CI (GitHub Actions or Jenkins) for fast, reliable feedback. Limitations include RBAC and ephemeral networking only reproducible in real clusters. A working CLI for custom resources demonstrates the approach scales from tests to real tooling.
AI-written summary · about
related talks
05mLightning Talk: Fake it Until You Make it: Unit Tests with Go-Client Fake Client
34mAdvanced Testing Techniques in Go
31mFake It to Make It! - TDD of gRPC Microservices
07mLightning Talk: Developer's Toolbox for Testing in Production
26mThe Hitchhiker's Guide to Testing Kubernetes
50mContinuous API Mocking and Testing with Microcks, Keptn, and Testkube
48mClimbing the Testing Pyramid: From Real Service to Interface Mocks in Go
31mTesting Kubernetes CRDs
