Skip to content

Commit

Permalink
Remove Service Port Name (antrea-io#3186)
Browse files Browse the repository at this point in the history
Our imported Service has name but endpoint is without name
which causes the Antrea agent fail to install openflow rule.
so simply remove the name since it's defined by ourself.

Signed-off-by: Lan Luo <[email protected]>
  • Loading branch information
luolanzone committed Jan 16, 2022
1 parent 1fdfbaa commit d35d8df
Showing 1 changed file with 0 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ package multicluster
import (
"context"
"fmt"
"strconv"
"strings"
"time"

Expand Down Expand Up @@ -454,7 +453,6 @@ func svcPortsConverter(svcPort []corev1.ServicePort) []mcs.ServicePort {
var mcsSP []mcs.ServicePort
for _, v := range svcPort {
mcsSP = append(mcsSP, mcs.ServicePort{
Name: strconv.Itoa(int(v.Port)) + strings.ToLower(string(v.Protocol)),
Port: v.Port,
Protocol: v.Protocol,
})
Expand Down

0 comments on commit d35d8df

Please sign in to comment.