kudobuilder / kuttl

KUbernetes Test TooL (kuttl)
https://kuttl.dev
Apache License 2.0
636 stars 83 forks source link

Auto-generated namespace name clashes #500

Open Y0sh1dk opened 7 months ago

Y0sh1dk commented 7 months ago

What happened: When running Kuttl tests in CI, --skip-delete is used to speed up the test suite (~5x faster) as you don't have to wait for namespace deletion. A fresh cluster is used each CI run so leaving resources behind after a run is not an issue.

Periodically a namespace clash will occur where kuttl tries to create a new namespace when a namespace with the auto generated name already exists.

Example:

case.go:343: namespaces "kuttl-test-many-anteater" already exists

What you expected to happen: No namespace clash to occur

How to reproduce it (as minimally and precisely as possible): Run many test cases with --skip-delete