diff --git a/CodexNetDeployer/Deployer.cs b/CodexNetDeployer/Deployer.cs index a5aa56b..2870e4d 100644 --- a/CodexNetDeployer/Deployer.cs +++ b/CodexNetDeployer/Deployer.cs @@ -66,7 +66,7 @@ namespace CodexNetDeployer operationTimeout: timeset.K8sOperationTimeout(), retryDelay: timeset.WaitForK8sServiceDelay()); - var workflowCreator = new WorkflowCreator(log, kubeConfig); + var workflowCreator = new WorkflowCreator(log, kubeConfig, testNamespacePostfix: string.Empty); var lifecycle = new TestLifecycle(log, lifecycleConfig, timeset, workflowCreator); return (workflowCreator, lifecycle); diff --git a/KubernetesWorkflow/WorkflowCreator.cs b/KubernetesWorkflow/WorkflowCreator.cs index d03dca7..ea1775a 100644 --- a/KubernetesWorkflow/WorkflowCreator.cs +++ b/KubernetesWorkflow/WorkflowCreator.cs @@ -13,10 +13,15 @@ namespace KubernetesWorkflow private readonly string testNamespace; public WorkflowCreator(BaseLog log, Configuration configuration) + : this(log, configuration, Guid.NewGuid().ToString().ToLowerInvariant()) + { + } + + public WorkflowCreator(BaseLog log, Configuration configuration, string testNamespacePostfix) { cluster = new K8sCluster(configuration); this.log = log; - testNamespace = Guid.NewGuid().ToString().ToLowerInvariant(); + testNamespace = testNamespacePostfix; } public StartupWorkflow CreateWorkflow()