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 <brad.davidson@rancher.com>
This commit is contained in:
Brad Davidson 2021-09-16 14:28:23 -07:00 committed by Brad Davidson
parent dccee4e87b
commit 753e11ee3c

View File

@ -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 { func controllerManager(ctx context.Context, cfg *config.Control, runtime *config.ControlRuntime) error {
argsMap := map[string]string{ argsMap := map[string]string{
"feature-gates": "JobTrackingWithFinalizers=true",
"kubeconfig": runtime.KubeConfigController, "kubeconfig": runtime.KubeConfigController,
"authorization-kubeconfig": runtime.KubeConfigController, "authorization-kubeconfig": runtime.KubeConfigController,
"authentication-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) { 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) setupStorageBackend(argsMap, cfg)