Idiot developer forgets to use variable.

This commit is contained in:
benbierens 2023-10-25 14:42:53 +02:00
parent 939eed544d
commit 9b1ab3185f
No known key found for this signature in database
GPG Key ID: FE44815D96D0A1AA
2 changed files with 3 additions and 4 deletions

View File

@ -82,8 +82,8 @@
public override string ToString()
{
if (string.IsNullOrEmpty(Tag)) return $"untagged-port={Number}";
return $"{Tag}={Number}";
if (string.IsNullOrEmpty(Tag)) return $"untagged-port={Number}/{Protocol}";
return $"{Tag}={Number}/{Protocol}";
}
}

View File

@ -641,7 +641,6 @@ namespace KubernetesWorkflow
if (port.IsTcp()) CreateServicePort(result, recipe, port, "TCP");
if (port.IsUdp()) CreateServicePort(result, recipe, port, "UDP");
}
return result;
}
@ -650,7 +649,7 @@ namespace KubernetesWorkflow
result.Add(new V1ServicePort
{
Name = GetNameForPort(recipe, port),
Protocol = "TCP",
Protocol = protocol,
Port = port.Number,
TargetPort = GetNameForPort(recipe, port),
});