mirror of https://github.com/linkerd/linkerd2.git
Integration tests may fail and leave behind namespaces that following builds aren't able to clean up because the git sha is being included in the namespace name, and the following builds don't know about those shas. This modifies the `test-cleanup` script to delete based on object labels instead of relying on the objects names, now that after 2.4 all the control plane components are labeled. Note that this will also remove non-testing linkerd namespaces, but we were already kinda doing that partially because we were removing the cluster-level resources (CRDs, webhook configs, clusterroles, clusterrolebindings, psp). `test-cleanup` no longer receives a namespace name as an argument. The data plane namespaces aren't labeled though, so I've added the `linkerd.io/is-test-data-plane` label for them in `CreateNamespaceIfNotExists()`, and making sure all tests that need a data plaine explicitly call that method instead of creating the namespace as a side-effect in `KubectlApply()`. Signed-off-by: Alejandro Pedraza <alejandro@buoyant.io> |
||
---|---|---|
.. | ||
testdata | ||
egress_test.go |