Uploaded image for project: 'Couchbase Kubernetes'
  1. Couchbase Kubernetes
  2. K8S-1490

[BP] Label all secrets created for testing and use the label for cleanup instead of defer cleanup

    XMLWordPrintable

Details

    • Task
    • Resolution: Won't Do
    • Major
    • None
    • None
    • testing
    • 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

          No reviews matched the request. Check your Options in the drop-down menu of this sections header.

          Activity

            People

              prateek.kumar Prateek Kumar (Inactive)
              arunkumar Arunkumar Senthilnathan (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes

                  PagerDuty