Details
-
Task
-
Resolution: Won't Do
-
Major
-
None
-
None
-
None
Description
At present, we rely on defer functions to clean up secrets created for testing purposes (xdcr and rbac) - for example:
https://github.com/couchbase/couchbase-operator/blob/fb1bb5a648736c7c64253c5fece382b4caca049a/test/e2e/xdcr_test.go#L117
https://github.com/couchbase/couchbase-operator/blob/fb1bb5a648736c7c64253c5fece382b4caca049a/test/e2e/e2eutil/xdcr_util.go#L305
in K8S-1425, we ran into a weird issue with this defer cleanup - we should label all the secrets created for testing with some QE specific name and use that label for secrets cleanup instead of relying on defer func