Description
What do you want to happen?
Projects are scaffolded with e2e tests, which by default, should be executed in a specific environment. The common practice is to spin up an environment, run the tests, and then tear down the environment to ensure the tests are executed in isolation.
However, some users might prefer to run these tests in an environment where Prometheus and Cert-Manager are already installed, or in cases where their project does not require these tools. Users should still be able to customize their scaffold as needed. (Motivation: #3971)
To facilitate this, we can add a logic that uses an environment variable to skip the installation of these tools, such as INSTALL_PROMETHEUS_E2E_TEST=false.
The changes should be made in the following section of the code:
kubebuilder/testdata/project-v4/test/e2e/e2e_test.go
Lines 32 to 43 in 94d8fce
Additionally, we have a practice of adding TODO(user): comments
. We must ensure that this code includes comments explaining how the tests should be used and describing the ability to disable the installation of Prometheus and Cert-Manager in the e2e tests.
Extra Labels
No response