Skip to content

Commit

Permalink
Merge pull request kubernetes#6242 from thockin/plural_services_20
Browse files Browse the repository at this point in the history
Fix a back-compat bug in multi-port services
  • Loading branch information
bgrant0607 committed Mar 31, 2015
2 parents d95f744 + 70b9e56 commit 00cb644
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions pkg/api/v1beta1/conversion.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
1 change: 1 addition & 0 deletions pkg/api/v1beta2/conversion.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 00cb644

Please sign in to comment.