fix(k8s): remove job-name label that conflicts with k8s auto-label

Kubernetes automatically adds a job-name label to Job pod templates
matching the full Job name. Our custom job-name label used the short
name, causing a 422 validation error. Let k8s manage this label.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
feature/k8s-jobs
Prathamesh Musale 2026-03-03 14:11:05 +00:00
parent e0a8477326
commit 9b304b8990
1 changed files with 1 additions and 1 deletions

View File

@ -704,7 +704,7 @@ class ClusterInfo:
template = client.V1PodTemplateSpec(
metadata=client.V1ObjectMeta(
labels={"app": self.app_name, "job-name": job_name}
labels={"app": self.app_name}
),
spec=client.V1PodSpec(
containers=containers,