Details
-
Task
-
Resolution: Fixed
-
Major
-
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
Attachments
Issue Links
- is cloned by
-
K8S-1490 [BP] Label all secrets created for testing and use the label for cleanup instead of defer cleanup
- Closed