We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f4e24d9 commit ff1b8c2Copy full SHA for ff1b8c2
test/e2e/e2e_test.go
@@ -99,7 +99,7 @@ var _ = BeforeSuite(func() {
99
ObjectMeta: metav1.ObjectMeta{
100
Name: testNamespace,
101
Annotations: map[string]string{
102
- "olm.e2e": "testNamespace",
+ "olm.e2e": "no-e2e-kube-client-reset",
103
},
104
105
})
test/e2e/util/e2e_client.go
@@ -59,6 +59,11 @@ func (m *E2EKubeClient) Reset() error {
59
break
60
}
61
62
+ // Don't delete e2e resources we don't testNamespace.
63
+ if obj.GetAnnotations()["olm.e2e"] == "no-e2e-kube-client-reset" {
64
+ continue
65
+ }
66
+
67
namespace := obj.GetNamespace()
68
if namespace == "" {
69
namespace = "<global>"
0 commit comments