Merge pull request #2936 from Poor12/add-failover-check
Start gracefulEviction controller when failover is close
This commit is contained in:
commit
99845a6a16
|
@ -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),
|
||||
|
|
Loading…
Reference in New Issue