start gracefulEviction controller when failover is close
Signed-off-by: Poor12 <shentiecheng@huawei.com>
This commit is contained in:
parent
1541db26d5
commit
b86c385fe8
|
@ -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),
|
||||||
|
|
Loading…
Reference in New Issue