kubebuilder icon indicating copy to clipboard operation
kubebuilder copied to clipboard

e2e tests leave resources behind after running

Open mahmoudhossam opened this issue 7 months ago • 6 comments
trafficstars

What broke? What's expected?

Running e2e tests leaves cert-manager related resources behind, causing failures in subsequent runs.

Namely, the resources leases.coordination.k8s.io/cert-manager-cainjector-leader-election and leases.coordination.k8s.io/cert-manager-controller in the kube-system namespace.

Reproducing this issue

Run make test-e2e then kubectl get -n kube-system leases.coordination.k8s.io

KubeBuilder (CLI) Version

Version: cmd.version{KubeBuilderVersion:"4.5.2", KubernetesVendor:"1.32.1", GitCommit:"7c707052daa2e8bd51f47548c02710b1f1f7a77e", BuildDate:"2025-03-26T19:24:40Z", GoOs:"darwin", GoArch:"arm64"}

PROJECT version

3

Plugin versions

layout:
- go.kubebuilder.io/v4

Other versions

Kubectl:

Client Version: v1.32.3
Kustomize Version: v5.5.0
Server Version: v1.32.2

Go 1.23.0 sigs.k8s.io/controller-runtime v0.20.0

Extra Labels

No response

mahmoudhossam avatar Mar 28 '25 14:03 mahmoudhossam