Skip to content

Commit

Permalink
Fix running jobs with custom docker_image when default job image is n…
Browse files Browse the repository at this point in the history
…ot set

Logic behind UseJobProxyFromImage is slightly broken. Keep it disabled for now.
  • Loading branch information
koct9i committed Apr 10, 2024
1 parent 847c46b commit 73f8a99
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@
namespace=yt;
"base_cgroup"="/yt";
};
"use_job_proxy_from_image"=%true;
"use_job_proxy_from_image"=%false;
};
"do_not_set_user_id"=%true;
};
Expand Down
4 changes: 2 additions & 2 deletions pkg/ytconfig/node.go
Original file line number Diff line number Diff line change
Expand Up @@ -378,12 +378,12 @@ func fillJobEnvironment(execNode *ExecNode, spec *ytv1.ExecNodesSpec, commonSpec

if jobImage := commonSpec.JobImage; jobImage != nil {
jobEnv.JobProxyImage = *jobImage
jobEnv.UseJobProxyFromImage = ptr.Bool(false)
} else {
jobEnv.JobProxyImage = ptr.StringDeref(spec.Image, commonSpec.CoreImage)
jobEnv.UseJobProxyFromImage = ptr.Bool(true)
}

jobEnv.UseJobProxyFromImage = ptr.Bool(false)

endpoint := "unix://" + getContainerdSocketPath(spec)

jobEnv.CriExecutor = &CriExecutor{
Expand Down

0 comments on commit 73f8a99

Please sign in to comment.