Skip to content

Commit

Permalink
Instantiate the rcsw with gatewayAlive=true (#8590) (#8725) (#8787)
Browse files Browse the repository at this point in the history
If we don't instantiate the RemoteClusterWatcher with gatewayAlive=true, then
there will be a small period all services will fail-fast unexpectedly.

Simply Instantiate the RemoteClusterWatcher with gatewayAlive=true.

Signed-off-by: Ao Chen <chenao3220@gmail.com>
  • Loading branch information
kleimkuhler committed Jul 1, 2022
1 parent 2489f7b commit a761f4f
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions multicluster/service-mirror/cluster_watcher.go
Original file line number Diff line number Diff line change
Expand Up @@ -195,6 +195,8 @@ func NewRemoteClusterServiceWatcher(
repairPeriod: repairPeriod,
liveness: liveness,
headlessServicesEnabled: enableHeadlessSvc,
// always instantiate the gatewayAlive=true to prevent unexpected service fail fast
gatewayAlive: true,
}, nil
}

Expand Down

0 comments on commit a761f4f

Please sign in to comment.