mirror of
https://github.com/kubernetes/kubernetes.git
synced 2026-05-28 04:04:39 -04:00
Merge pull request #6242 from thockin/plural_services_20
Fix a back-compat bug in multi-port services
This commit is contained in:
commit
00cb644f45
2 changed files with 2 additions and 0 deletions
|
|
@ -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 a new issue