From 3e49ce6ae9948ff16f3c81888343d286ab2dea19 Mon Sep 17 00:00:00 2001 From: benbierens Date: Tue, 7 Nov 2023 13:13:06 +0100 Subject: [PATCH] Adds kube namespace to internal addresses --- Framework/KubernetesWorkflow/StartupWorkflow.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Framework/KubernetesWorkflow/StartupWorkflow.cs b/Framework/KubernetesWorkflow/StartupWorkflow.cs index 3e13c55..afbc6f5 100644 --- a/Framework/KubernetesWorkflow/StartupWorkflow.cs +++ b/Framework/KubernetesWorkflow/StartupWorkflow.cs @@ -172,10 +172,11 @@ namespace KubernetesWorkflow private Address GetContainerInternalAddress(StartResult startResult, ContainerRecipe recipe, string tag) { + var namespaceName = startResult.Cluster.Configuration.KubernetesNamespace; var serviceName = startResult.InternalService!.Name; var port = startResult.GetInternalServicePorts(recipe, tag); return new Address( - $"http://{serviceName}", + $"http://{namespaceName}/{serviceName}", port.Number); }