Building tools and solving interesting problems in cloud computing. MBA @ Stanford, ex-Google Software Engineer (Kubernetes)

Unit Testing with the Kubernetes Client Library

How do you unit test code that makes Kubernetes API calls? Using the Kubernetes client library can help you mock out a cluster to test your code against. As one of the first consumers of the kubernetes/client-go library when building kubernetes/minikube, I built elaborate mocks for services, pods,…