Skip to content

Commit

Permalink
Instantiate the rcsw with gatewayAlive=true (#8590) (#8725)
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.

Fix #8590

Signed-off-by: Ao Chen <chenao3220@gmail.com>
  • Loading branch information
chenaoxd committed Jun 23, 2022
1 parent 7e8167b commit 9d868c0
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 @@ -196,6 +196,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 9d868c0

Please sign in to comment.