From 753e11ee3c0faaf22a6e46d4c2c746a2d26d9a2a Mon Sep 17 00:00:00 2001 From: Brad Davidson Date: Thu, 16 Sep 2021 14:28:23 -0700 Subject: [PATCH] Enable JobTrackingWithFinalizers FeatureGate Works around issue with Job controller not tracking job pods that are in CrashloopBackoff during upgrade from 1.21 to 1.22. Signed-off-by: Brad Davidson --- pkg/daemons/control/server.go | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/pkg/daemons/control/server.go b/pkg/daemons/control/server.go index 437d7a12a5..0794eac6db 100644 --- a/pkg/daemons/control/server.go +++ b/pkg/daemons/control/server.go @@ -92,6 +92,7 @@ func Server(ctx context.Context, cfg *config.Control) error { func controllerManager(ctx context.Context, cfg *config.Control, runtime *config.ControlRuntime) error { argsMap := map[string]string{ + "feature-gates": "JobTrackingWithFinalizers=true", "kubeconfig": runtime.KubeConfigController, "authorization-kubeconfig": runtime.KubeConfigController, "authentication-kubeconfig": runtime.KubeConfigController, @@ -145,7 +146,9 @@ func scheduler(ctx context.Context, cfg *config.Control, runtime *config.Control } func apiServer(ctx context.Context, cfg *config.Control, runtime *config.ControlRuntime) (authenticator.Request, http.Handler, error) { - argsMap := make(map[string]string) + argsMap := map[string]string{ + "feature-gates": "JobTrackingWithFinalizers=true", + } setupStorageBackend(argsMap, cfg)