Closed veaceslavdoina closed 1 year ago
We may consider to use that unique ID in a more global way and name it like a RUN_ID
RUN_ID
and use it for AppRUN_ID
in namespace name - k8sNamespacePrefix: "ct-%RUN_ID%-",
In 303eb99f490dd1e2c167f8284e01fc12feee2ba3 we use a random as a namespace suffix GUID.
In the app config we have a key https://github.com/codex-storage/cs-codex-dist-tests/blob/1b490c475e48fca995801b55fa59cd93a6151bdd/DistTestCore/Configuration.cs#L10
which defines a namespace prefix and pods will run in the following namespaces
It works well when we run tests once, but the next run will overlap with the precedent one and will clean all previous objects. And, that approach is undesired.
We should be able to set an unique prefix per run
It can be a short random string
ct-ief0xeix-
or maybe a date with a seconds precision, likect-20230529-112909-
or anything else unique.