The previous chapter described how to implement a simple, but complete, Reconcile function for an Operator reconciling a Custom Resource.
To test the Reconcile function you have written in the previous chapter, you will use ginkgo, which is a Testing Framework for Go; and the envtest package from the controller-runtime Library, which provides a Kubernetes environment for testing.
The envtest Package
The controller-runtime Library provides an envtest package. This package provides a Kubernetes environment ...