mirror of
https://github.com/k3s-io/k3s.git
synced 2024-06-07 19:41:36 +00:00
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:
parent
dccee4e87b
commit
753e11ee3c
@ -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)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user