GA TTLAfterFinish

This commit is contained in:
Sahil Vazirani
2021-09-23 14:01:07 -07:00
parent 1123a7041e
commit 3988405c8d
12 changed files with 25 additions and 60 deletions

View File

@@ -573,9 +573,6 @@ func startPVProtectionController(ctx context.Context, controllerContext Controll
}
func startTTLAfterFinishedController(ctx context.Context, controllerContext ControllerContext) (controller.Interface, bool, error) {
if !utilfeature.DefaultFeatureGate.Enabled(features.TTLAfterFinished) {
return nil, false, nil
}
go ttlafterfinished.New(
controllerContext.InformerFactory.Batch().V1().Jobs(),
controllerContext.ClientBuilder.ClientOrDie("ttl-after-finished-controller"),