Successful remote test deploy. Adds option to remove random guid from k8s namespace.

This commit is contained in:
benbierens 2023-06-23 08:57:31 +02:00
parent acfd1f1f10
commit d9665f3e79
No known key found for this signature in database
GPG Key ID: FE44815D96D0A1AA
2 changed files with 7 additions and 2 deletions

View File

@ -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);

View File

@ -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()