Description
Hi all,
the fact that kube-controller-manager is missing from envTest
means that some of the most core things in Kubernetes are basically impossible to test. Things like:
- Namespace termination
- Garbage collection of owned resources
- Core finalizers (will get stuck)
Here are some of the previously opened issues related to the missing kube-controller-manager in envTest
:
- Operator controller could not delete correlated resources #1263
- Can't delete namespaces from test environment #880
- ENVTest - cannot delete PVCs in BDD test #2854
- envtest environment does not perform cascading deletions #1459
- ENVTest - cannot delete PVCs #1383
Personally, I'm really keen on having the garbage collection working. Without it, one would need to add some not-nice hacks to envtest to pretend things are working.
This forces users to perform E2E tests on a "real cluster" (something like kind) but then the main issue becomes the substantially longer turnaround time and the inability to easily debug tests with breakpoints (although still possible, it's a pain to setup).
If this capability is intentionally disabled and is not planned to be enabled, I'd wish this to be documented so then users won't come and ask for it on similar issues again. Other than that, if this could be worked out, it would be AMAZING.
Thanks in advance!