Skip to content
Snippets Groups Projects
Verified Commit 76a1cddb authored by Hamza Remmal's avatar Hamza Remmal :homes:
Browse files

fix: Trim the name of the image when building the job

parent 2f1e4576
No related branches found
No related tags found
1 merge request!311fix: Trim the name of the image when building the job
Pipeline #240433 passed
...@@ -242,7 +242,7 @@ public final class KubernetesJobService { ...@@ -242,7 +242,7 @@ public final class KubernetesJobService {
private Container prepare_grading_container(Volume volume, Environment env, CreateSubmissionRequest request) { private Container prepare_grading_container(Volume volume, Environment env, CreateSubmissionRequest request) {
return new ContainerBuilder() return new ContainerBuilder()
.withName("grader") .withName("grader")
.withImage(env.image()) .withImage(env.image().trim())
.withImagePullPolicy(jobImageConfig.pullPolicy().toString()) .withImagePullPolicy(jobImageConfig.pullPolicy().toString())
.withVolumeMounts(new VolumeMountBuilder() .withVolumeMounts(new VolumeMountBuilder()
.withName(volume.getName()) .withName(volume.getName())
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment