in src/com/epam/digital/data/platform/pipelines/registry/CleanupRegistryRegulation.groovy [60:71]
void recreateDefaultCodebaseRelatedResources(String resourceName) {
checkFinalizers(resourceName)
checkRepository(resourceName)
boolean checkCodebase = context.platform.checkObjectExists("codebase", resourceName)
String checkCodebaseBranch = context.platform.get("codebasebranch", "",
"-l affiliatedWith=$resourceName")
if (!checkCodebase || !checkCodebaseBranch) {
context.gitServer.deleteRepository(resourceName)
createTempSecret(resourceName)
createResource(resourceName)
}
}