Skip to content
This repository has been archived by the owner on Jan 24, 2021. It is now read-only.

Commit

Permalink
Release v0.0.2
Browse files Browse the repository at this point in the history
  • Loading branch information
mhmxs committed Jun 12, 2020
1 parent e6a5385 commit 48d5f4e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions topologies/multi.go
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,7 @@ func (t *MultiTopology) GenerateBGPPeers(routeReflectors []corev1.Node, nodes ma
continue
}

// TODO Would be better to create RR groups [1,2,3], [1,2,4], ... to decrease number of BGP peers
for i := 1; i <= int(math.Min(float64(len(routeReflectors)), 3)); i++ {
rr := routeReflectors[rrIndex]
rrID := getRouteReflectorID(string(rr.GetUID()))
Expand Down
2 changes: 1 addition & 1 deletion topologies/single.go
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ func (t *SingleTopology) GenerateBGPPeers(_ []corev1.Node, _ map[*corev1.Node]bo
}
}
clientConfig.Spec = calicoApi.BGPPeerSpec{
NodeSelector: selector,
NodeSelector: "!" + selector,
PeerSelector: selector,
}

Expand Down

0 comments on commit 48d5f4e

Please sign in to comment.