Skip to content

[envTest] Feature request: Enable kube-controller-manager #3083

Open
@migueleliasweb

Description

@migueleliasweb

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:

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!

Metadata

Metadata

Assignees

No one assigned

    Labels

    lifecycle/staleDenotes an issue or PR has remained open with no activity and has become stale.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions