Skip to content

Commit

Permalink
Disable cluster failover by default which should be explicitly enable…
Browse files Browse the repository at this point in the history
…d by administrators after a fully evaluation.

Signed-off-by: RainbowMango <qdurenhongcai@gmail.com>
  • Loading branch information
RainbowMango authored and XiShanYongYe-Chang committed Dec 13, 2024
1 parent 90c6c88 commit 1d0639e
Show file tree
Hide file tree
Showing 4 changed files with 507 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=*,hpaReplicasSyncer
- --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 @@ -587,9 +587,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 1d0639e

Please sign in to comment.