Skip to content

Commit

Permalink
Merge pull request #1489 from mrjana/lb
Browse files Browse the repository at this point in the history
Do not add names to ingress network
  • Loading branch information
aboch authored Oct 5, 2016
2 parents fd4359b + 8dd6270 commit d9e5cdf
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions network.go
Original file line number Diff line number Diff line change
Expand Up @@ -1059,6 +1059,12 @@ func delNameToIP(svcMap map[string][]net.IP, name string, epIP net.IP) {
}

func (n *network) addSvcRecords(name string, epIP net.IP, epIPv6 net.IP, ipMapUpdate bool) {
// Do not add service names for ingress network as this is a
// routing only network
if n.ingress {
return
}

c := n.getController()
c.Lock()
defer c.Unlock()
Expand Down Expand Up @@ -1086,6 +1092,12 @@ func (n *network) addSvcRecords(name string, epIP net.IP, epIPv6 net.IP, ipMapUp
}

func (n *network) deleteSvcRecords(name string, epIP net.IP, epIPv6 net.IP, ipMapUpdate bool) {
// Do not delete service names from ingress network as this is a
// routing only network
if n.ingress {
return
}

c := n.getController()
c.Lock()
defer c.Unlock()
Expand Down

0 comments on commit d9e5cdf

Please sign in to comment.