Rewrites runner location set

This commit is contained in:
benbierens 2023-11-07 12:48:18 +01:00
parent 3e500e8346
commit eecdcf308d
No known key found for this signature in database
GPG Key ID: FE44815D96D0A1AA
1 changed files with 3 additions and 5 deletions

View File

@ -37,12 +37,10 @@ namespace KubernetesWorkflow
var deployment = CreateDeployment(containerRecipes, location, podLabel);
var internalService = CreateInternalService(containerRecipes);
var externalService = CreateExternalService(containerRecipes);
var runnerLocation = DetermineRunnerLocation(deployment);
return new StartResult(cluster, containerRecipes, deployment, internalService, externalService)
{
RunnerLocation = runnerLocation
};
var result = new StartResult(cluster, containerRecipes, deployment, internalService, externalService);
result.RunnerLocation = DetermineRunnerLocation(deployment);
return result;
}
private RunnerLocation DetermineRunnerLocation(RunningDeployment deployment)