kudobuilder / kuttl

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

Make namespace auto-generated name more unique #501

Closed Y0sh1dk closed 2 months ago

Y0sh1dk commented 7 months ago

What this PR does / why we need it: Bump the auto-generated namespace name words from 2 -> 4 to reduce the chance of a clash.

Fixes #500

porridge commented 4 months ago

An alternative would be to use a different string of similar length as the current one, but containing more entropy. I.e. use a string of random alphanumeric characters rather than petname. The k8s code which generates unique pod or replicaset names for deployments might serve as an example...