Instantiate the rcsw with gatewayAlive=true
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
@@ -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
}
