Versions in this module Expand all Collapse all v0 v0.1.0 Jul 10, 2020 Changes in this version type MultiTopology + func (t *MultiTopology) GetRouteReflectorStatuses(nodes map[*corev1.Node]bool) (statuses []RouteReflectorStatus) + type RouteReflectorStatus struct + ActualRRs int + ExpectedRRs int + Nodes []*corev1.Node + Zones []string type SingleTopology + func (t *SingleTopology) GetRouteReflectorStatuses(nodes map[*corev1.Node]bool) []RouteReflectorStatus type Topology + GetRouteReflectorStatuses func(map[*corev1.Node]bool) []RouteReflectorStatus v0.0.5 Jun 19, 2020 v0.0.4 Jun 17, 2020 v0.0.3 Jun 15, 2020 v0.0.2 Jun 12, 2020 Changes in this version + const DefaultRouteReflectorClientName + const DefaultRouteReflectorMeshName + type Config struct + ClusterID string + Max int + Min int + NodeLabelKey string + NodeLabelValue string + Ration float64 + ZoneLabel string + type MultiTopology struct + func (t *MultiTopology) AddRRSuccess(nodeID string) + func (t *MultiTopology) CalculateExpectedNumber(readyNodes int) int + func (t *MultiTopology) GenerateBGPPeers(routeReflectors []corev1.Node, nodes map[*corev1.Node]bool, ...) []calicoApi.BGPPeer + func (t *MultiTopology) GetClusterID(nodeID string) string + func (t *MultiTopology) GetNodeLabel(nodeID string) (string, string) + func (t *MultiTopology) IsRouteReflector(nodeID string, labels map[string]string) bool + func (t *MultiTopology) NewNodeListOptions(nodeLabels map[string]string) client.ListOptions + func (t *MultiTopology) RemoveRRSuccess(nodeID string) + type SingleTopology struct + func (t *SingleTopology) AddRRSuccess(string) + func (t *SingleTopology) CalculateExpectedNumber(readyNodes int) int + func (t *SingleTopology) GenerateBGPPeers(_ []corev1.Node, _ map[*corev1.Node]bool, existingPeers *calicoApi.BGPPeerList) []calicoApi.BGPPeer + func (t *SingleTopology) GetClusterID(string) string + func (t *SingleTopology) GetNodeLabel(string) (string, string) + func (t *SingleTopology) IsRouteReflector(_ string, labels map[string]string) bool + func (t *SingleTopology) NewNodeListOptions(nodeLabels map[string]string) client.ListOptions + func (t *SingleTopology) RemoveRRSuccess(string) + type Topology interface + AddRRSuccess func(string) + CalculateExpectedNumber func(int) int + GenerateBGPPeers func([]corev1.Node, map[*corev1.Node]bool, *calicoApi.BGPPeerList) []calicoApi.BGPPeer + GetClusterID func(string) string + GetNodeLabel func(string) (string, string) + IsRouteReflector func(string, map[string]string) bool + NewNodeListOptions func(labels map[string]string) client.ListOptions + RemoveRRSuccess func(string) + func NewMultiTopology(config Config) Topology + func NewSingleTopology(config Config) Topology