Successful remote test deploy. Adds option to remove random guid from k8s namespace.
This commit is contained in:
parent
acfd1f1f10
commit
d9665f3e79
|
@ -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);
|
||||
|
|
|
@ -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()
|
||||
|
|
Loading…
Reference in New Issue