From 8ee7b99803d439c089bb39d83a2341e397f2131c Mon Sep 17 00:00:00 2001 From: Andrej Smigala Date: Tue, 4 Mar 2025 08:22:58 +0100 Subject: [PATCH] Cleanup created clusterrolebinding after tests (#689) Signed-off-by: Andrej Smigala --- tests/e2e/operator/operator_install_test.go | 1 + 1 file changed, 1 insertion(+) diff --git a/tests/e2e/operator/operator_install_test.go b/tests/e2e/operator/operator_install_test.go index 88ec6f9d7..2b797e2ec 100644 --- a/tests/e2e/operator/operator_install_test.go +++ b/tests/e2e/operator/operator_install_test.go @@ -179,6 +179,7 @@ subjects: AfterAll(func() { Expect(k.DeleteNamespace(curlNamespace)).To(Succeed(), "failed to delete curl namespace") + exec.Command("kubectl", "delete", "--ignore-not-found", "clusterrolebinding", "metrics-reader-rolebinding").Run() if CurrentSpecReport().Failed() { common.LogDebugInfo(common.Operator, k)