From 9d868c097d6c01f63d371578b960ff5d844303cf Mon Sep 17 00:00:00 2001 From: Ao Chen Date: Thu, 23 Jun 2022 23:58:01 +0800 Subject: [PATCH] Instantiate the rcsw with gatewayAlive=true (#8590) (#8725) 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 --- multicluster/service-mirror/cluster_watcher.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/multicluster/service-mirror/cluster_watcher.go b/multicluster/service-mirror/cluster_watcher.go index 8dd607bd41585..1f844ad332792 100644 --- a/multicluster/service-mirror/cluster_watcher.go +++ b/multicluster/service-mirror/cluster_watcher.go @@ -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 }