Commit 753e11ee authored by Brad Davidson's avatar Brad Davidson Committed by Brad Davidson

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: 's avatarBrad Davidson <brad.davidson@rancher.com>
parent dccee4e8
......@@ -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)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment