mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-22 19:31:44 +00: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
@ -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
Block a user