logs runner location
This commit is contained in:
parent
6672427565
commit
8d0b3feff7
|
@ -48,7 +48,7 @@ namespace KubernetesWorkflow
|
|||
private RunnerLocation DetermineRunnerLocation(RunningDeployment deployment)
|
||||
{
|
||||
var podInfo = GetPodInfo(deployment);
|
||||
return RunnerLocationUtils.DetermineRunnerLocation(podInfo, cluster);
|
||||
return RunnerLocationUtils.DetermineRunnerLocation(log, podInfo, cluster);
|
||||
}
|
||||
|
||||
public PodInfo GetPodInfo(RunningDeployment deployment)
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
using System.Net.NetworkInformation;
|
||||
using Logging;
|
||||
using System.Net.NetworkInformation;
|
||||
using Utils;
|
||||
|
||||
namespace KubernetesWorkflow
|
||||
|
@ -13,10 +14,11 @@ namespace KubernetesWorkflow
|
|||
{
|
||||
private static RunnerLocation? knownLocation = null;
|
||||
|
||||
internal static RunnerLocation DetermineRunnerLocation(PodInfo info, K8sCluster cluster)
|
||||
internal static RunnerLocation DetermineRunnerLocation(ILog log, PodInfo info, K8sCluster cluster)
|
||||
{
|
||||
if (knownLocation != null) return knownLocation.Value;
|
||||
knownLocation = PingForLocation(info, cluster);
|
||||
log.Log("Runner location set to: " + knownLocation);
|
||||
return knownLocation.Value;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue