start gracefulEviction controller when failover is close

Signed-off-by: Poor12 <shentiecheng@huawei.com>
This commit is contained in:
Poor12 2022-12-12 09:18:32 +08:00
parent 1541db26d5
commit b86c385fe8
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) { 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{ rbGracefulEvictionController := &gracefuleviction.RBGracefulEvictionController{
Client: ctx.Mgr.GetClient(), Client: ctx.Mgr.GetClient(),
EventRecorder: ctx.Mgr.GetEventRecorderFor(gracefuleviction.RBGracefulEvictionControllerName), EventRecorder: ctx.Mgr.GetEventRecorderFor(gracefuleviction.RBGracefulEvictionControllerName),