Skip to content

Commit

Permalink
Merge pull request #5947 from XiShanYongYe-Chang/cherry-pick-#5899-fo…
Browse files Browse the repository at this point in the history
…r-release-1.10

Disable cluster failover by default which should be explicitly enabled by administrators after a fully evaluation
  • Loading branch information
karmada-bot authored Dec 13, 2024
2 parents 8734c86 + 65b1ce3 commit 522efa0
Show file tree
Hide file tree
Showing 4 changed files with 493 additions and 8 deletions.
2 changes: 1 addition & 1 deletion artifacts/deploy/karmada-controller-manager.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ spec:
- --secure-port=10357
- --failover-eviction-timeout=30s
- --controllers=*,hpaScaleTargetMarker,deploymentReplicasSyncer
- --feature-gates=PropagationPolicyPreemption=true,MultiClusterService=true
- --feature-gates=Failover=true,PropagationPolicyPreemption=true,MultiClusterService=true
- --v=4
livenessProbe:
httpGet:
Expand Down
3 changes: 0 additions & 3 deletions cmd/controller-manager/app/controllermanager.go
Original file line number Diff line number Diff line change
Expand Up @@ -590,9 +590,6 @@ func startGracefulEvictionController(ctx controllerscontext.Context) (enabled bo
}

func startApplicationFailoverController(ctx controllerscontext.Context) (enabled bool, err error) {
if !features.FeatureGate.Enabled(features.Failover) {
return false, nil
}
rbApplicationFailoverController := applicationfailover.RBApplicationFailoverController{
Client: ctx.Mgr.GetClient(),
EventRecorder: ctx.Mgr.GetEventRecorderFor(applicationfailover.RBApplicationFailoverControllerName),
Expand Down
Loading

0 comments on commit 522efa0

Please sign in to comment.