Updates local address format

This commit is contained in:
benbierens 2023-11-07 13:49:28 +01:00
parent 3e49ce6ae9
commit 9d464708b5
No known key found for this signature in database
GPG Key ID: FE44815D96D0A1AA
1 changed files with 2 additions and 1 deletions

View File

@ -175,8 +175,9 @@ namespace KubernetesWorkflow
var namespaceName = startResult.Cluster.Configuration.KubernetesNamespace; var namespaceName = startResult.Cluster.Configuration.KubernetesNamespace;
var serviceName = startResult.InternalService!.Name; var serviceName = startResult.InternalService!.Name;
var port = startResult.GetInternalServicePorts(recipe, tag); var port = startResult.GetInternalServicePorts(recipe, tag);
return new Address( return new Address(
$"http://{namespaceName}/{serviceName}", $"http://{serviceName}.{namespaceName}.svc.cluster.local",
port.Number); port.Number);
} }