From eecdcf308d6081b048ba23e5c3bc5f28f423cc79 Mon Sep 17 00:00:00 2001 From: benbierens Date: Tue, 7 Nov 2023 12:48:18 +0100 Subject: [PATCH] Rewrites runner location set --- Framework/KubernetesWorkflow/K8sController.cs | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/Framework/KubernetesWorkflow/K8sController.cs b/Framework/KubernetesWorkflow/K8sController.cs index 9e74a6c..c45e374 100644 --- a/Framework/KubernetesWorkflow/K8sController.cs +++ b/Framework/KubernetesWorkflow/K8sController.cs @@ -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)