[CNCF Hosted] Building Confidence in Kubernetes Controllers: Lessons Learned from Using E2e-Framework
This session originally occurred at KubeCon + CloudNativeCon EU 2024 in Paris, hosted by the CNCF. It is posted and lives on their YouTube channel here.
Building Confidence in Kubernetes Controllers: Lessons Learned from Using E2e-Framework - Matteo Ruina, Datadog & Philippe Scorsolini, Upbound
When working with cluster components, or while developing new controllers, it is often necessary to run end-to-end (E2E) tests against real clusters. This allows developers to have confidence in the changes being made, allowing for frequent updates without compromising on reliability. Although Kubernetes has its own E2E framework, it is baked into the Kubernetes source code, making it difficult to consume from other projects.
For this reason, the Testing Special Interest Group built the e2e-framework, an out-of-tree Go framework to define end-to-end tests suites that can be used to test Kubernetes components. In this session we will talk about the e2e-framework. We will cover why we chose this framework, how to start writing your own tests, the approach we took, as well as the drawbacks you need to be aware of.