From 346a63abaa356de4e58900027583e583db4491dd Mon Sep 17 00:00:00 2001 From: benbierens Date: Fri, 2 Jun 2023 11:30:03 +0200 Subject: [PATCH] Fixes crash for container-recipes that expose no external ports. --- KubernetesWorkflow/RunningPod.cs | 1 + 1 file changed, 1 insertion(+) diff --git a/KubernetesWorkflow/RunningPod.cs b/KubernetesWorkflow/RunningPod.cs index 946d15e..bee0df9 100644 --- a/KubernetesWorkflow/RunningPod.cs +++ b/KubernetesWorkflow/RunningPod.cs @@ -20,6 +20,7 @@ public Port[] GetServicePortsForContainerRecipe(ContainerRecipe containerRecipe) { + if (servicePortMap.ContainsKey(containerRecipe)) return Array.Empty(); return servicePortMap[containerRecipe]; } }