Merge pull request #2936 from Poor12/add-failover-check

Start gracefulEviction controller when failover is close
This commit is contained in:
karmada-bot 2022-12-12 11:27:22 +08:00 committed by GitHub
commit 99845a6a16
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -472,7 +472,7 @@ func startFederatedResourceQuotaStatusController(ctx controllerscontext.Context)
}
func startGracefulEvictionController(ctx controllerscontext.Context) (enabled bool, err error) {
if features.FeatureGate.Enabled(features.Failover) && features.FeatureGate.Enabled(features.GracefulEviction) {
if features.FeatureGate.Enabled(features.GracefulEviction) {
rbGracefulEvictionController := &gracefuleviction.RBGracefulEvictionController{
Client: ctx.Mgr.GetClient(),
EventRecorder: ctx.Mgr.GetEventRecorderFor(gracefuleviction.RBGracefulEvictionControllerName),