Skip to content

Commit

Permalink
Added OnSync call if failed to create kubernetes api client for exte…
Browse files Browse the repository at this point in the history
  • Loading branch information
f41gh7 committed Oct 28, 2019
1 parent 5706f57 commit 37d9c51
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions pkg/backends/calico/client.go
Expand Up @@ -198,6 +198,8 @@ func NewCalicoClient(confdConfig *config.Config) (*client, error) {
// We only turn it on if configured to do so, to avoid needing to watch services / endpoints.
if c.rg, err = NewRouteGenerator(c); err != nil {
log.WithError(err).Error("Failed to start route generator, routes will not be advertised")
c.OnInSync(SourceRouteGenerator)
c.rg = nil
} else {
c.rg.onClusterIPsUpdate(clusterCIDRs)
c.rg.onExternalIPsUpdate(externalCIDRs)
Expand Down

0 comments on commit 37d9c51

Please sign in to comment.