mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-23 19:56:01 +00:00
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.
This commit is contained in:
parent
d95f744eea
commit
70b9e56952
@ -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() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// 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
|
||||||
|
Loading…
Reference in New Issue
Block a user