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) }