From 48114a0ffc3c3feaf0f40381b57bf42de353b372 Mon Sep 17 00:00:00 2001 From: dongzezhao Date: Thu, 4 Jan 2024 19:54:28 +0800 Subject: [PATCH] update --- pkg/job/runtime_v2/job/util/kuberuntime/kube_job_builder.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/job/runtime_v2/job/util/kuberuntime/kube_job_builder.go b/pkg/job/runtime_v2/job/util/kuberuntime/kube_job_builder.go index 4ad6821f6..16b4323b0 100644 --- a/pkg/job/runtime_v2/job/util/kuberuntime/kube_job_builder.go +++ b/pkg/job/runtime_v2/job/util/kuberuntime/kube_job_builder.go @@ -200,7 +200,7 @@ func (k *PodTemplateSpecBuilder) Build(task schema.Member) { return } // build metadata - k.Metadata("", "", task.GetLabels(), task.GetAnnotations()) + k.Metadata(task.GetName(), task.GetNamespace(), task.GetLabels(), task.GetAnnotations()) // set pod spec NewPodSpecBuilder(&k.podTemplateSpec.Spec, k.jobID).Build(task) }