Skip to content

Commit

Permalink
Merge pull request #4348 from XiShanYongYe-Chang/multiclusterservice-…
Browse files Browse the repository at this point in the history
…featuregate

fix wrong featuregate writing with MultiClusterService
  • Loading branch information
karmada-bot authored Nov 30, 2023
2 parents d6171a1 + 2a9af89 commit c8811b6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cmd/controller-manager/app/controllermanager.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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{
Expand Down

0 comments on commit c8811b6

Please sign in to comment.