Commit 00cb644f authored by Brian Grant's avatar Brian Grant

Merge pull request #6242 from thockin/plural_services_20

Fix a back-compat bug in multi-port services
parents d95f744e 70b9e569
...@@ -710,6 +710,7 @@ func init() { ...@@ -710,6 +710,7 @@ func init() {
} }
// Produce legacy fields. // Produce legacy fields.
out.Protocol = ProtocolTCP
if len(in.Spec.Ports) > 0 { if len(in.Spec.Ports) > 0 {
out.PortName = in.Spec.Ports[0].Name out.PortName = in.Spec.Ports[0].Name
out.Port = in.Spec.Ports[0].Port out.Port = in.Spec.Ports[0].Port
......
...@@ -641,6 +641,7 @@ func init() { ...@@ -641,6 +641,7 @@ func init() {
} }
// Produce legacy fields. // Produce legacy fields.
out.Protocol = ProtocolTCP
if len(in.Spec.Ports) > 0 { if len(in.Spec.Ports) > 0 {
out.PortName = in.Spec.Ports[0].Name out.PortName = in.Spec.Ports[0].Name
out.Port = in.Spec.Ports[0].Port out.Port = in.Spec.Ports[0].Port
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment