Merge pull request #4348 from XiShanYongYe-Chang/multiclusterservice-featuregate

fix wrong featuregate writing with MultiClusterService
This commit is contained in:
karmada-bot 2023-12-01 02:30:59 +08:00 committed by GitHub
commit c8811b6630
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -464,7 +464,7 @@ func startServiceExportController(ctx controllerscontext.Context) (enabled bool,
}
func startEndpointSliceCollectController(ctx controllerscontext.Context) (enabled bool, err error) {
if !features.FeatureGate.Enabled(features.Failover) {
if !features.FeatureGate.Enabled(features.MultiClusterService) {
return false, nil
}
opts := ctx.Opts
@ -486,7 +486,7 @@ func startEndpointSliceCollectController(ctx controllerscontext.Context) (enable
}
func startEndpointSliceDispatchController(ctx controllerscontext.Context) (enabled bool, err error) {
if !features.FeatureGate.Enabled(features.Failover) {
if !features.FeatureGate.Enabled(features.MultiClusterService) {
return false, nil
}
endpointSliceSyncController := &multiclusterservice.EndpointsliceDispatchController{