mirror of https://github.com/k3s-io/k3s
Fix a back-compat bug in multi-port services
Yu-Ju changed something just before this went in that exposed this bug. we did not re-run Travis on my PR. Bad us.pull/6/head
parent
d95f744eea
commit
70b9e56952
|
@ -710,6 +710,7 @@ func init() {
|
|||
}
|
||||
|
||||
// Produce legacy fields.
|
||||
out.Protocol = ProtocolTCP
|
||||
if len(in.Spec.Ports) > 0 {
|
||||
out.PortName = in.Spec.Ports[0].Name
|
||||
out.Port = in.Spec.Ports[0].Port
|
||||
|
|
|
@ -641,6 +641,7 @@ func init() {
|
|||
}
|
||||
|
||||
// Produce legacy fields.
|
||||
out.Protocol = ProtocolTCP
|
||||
if len(in.Spec.Ports) > 0 {
|
||||
out.PortName = in.Spec.Ports[0].Name
|
||||
out.Port = in.Spec.Ports[0].Port
|
||||
|
|
Loading…
Reference in New Issue