Idiot developer forgets to use variable.
This commit is contained in:
parent
939eed544d
commit
9b1ab3185f
|
@ -82,8 +82,8 @@
|
||||||
|
|
||||||
public override string ToString()
|
public override string ToString()
|
||||||
{
|
{
|
||||||
if (string.IsNullOrEmpty(Tag)) return $"untagged-port={Number}";
|
if (string.IsNullOrEmpty(Tag)) return $"untagged-port={Number}/{Protocol}";
|
||||||
return $"{Tag}={Number}";
|
return $"{Tag}={Number}/{Protocol}";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -641,7 +641,6 @@ namespace KubernetesWorkflow
|
||||||
if (port.IsTcp()) CreateServicePort(result, recipe, port, "TCP");
|
if (port.IsTcp()) CreateServicePort(result, recipe, port, "TCP");
|
||||||
if (port.IsUdp()) CreateServicePort(result, recipe, port, "UDP");
|
if (port.IsUdp()) CreateServicePort(result, recipe, port, "UDP");
|
||||||
}
|
}
|
||||||
|
|
||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -650,7 +649,7 @@ namespace KubernetesWorkflow
|
||||||
result.Add(new V1ServicePort
|
result.Add(new V1ServicePort
|
||||||
{
|
{
|
||||||
Name = GetNameForPort(recipe, port),
|
Name = GetNameForPort(recipe, port),
|
||||||
Protocol = "TCP",
|
Protocol = protocol,
|
||||||
Port = port.Number,
|
Port = port.Number,
|
||||||
TargetPort = GetNameForPort(recipe, port),
|
TargetPort = GetNameForPort(recipe, port),
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in New Issue