Add Job and secrets support for k8s-kind deployments #995

Merged
prathamesh merged 26 commits from feature/k8s-jobs into main 2026-03-11 03:56:22 +00:00
Showing only changes of commit 91f4e5fe38 - Show all commits

View File

@ -710,7 +710,9 @@ class ClusterInfo:
elif job_name.endswith(".yaml"):
job_name = job_name[: -len(".yaml")]
pod_labels = {"app": self.app_name, **({"app.kubernetes.io/stack": self.stack_name} if self.stack_name else {})}
# Use a distinct app label for job pods so they don't get
# picked up by pods_in_deployment() which queries app={app_name}.
pod_labels = {"app": f"{self.app_name}-job", **({"app.kubernetes.io/stack": self.stack_name} if self.stack_name else {})}
template = client.V1PodTemplateSpec(
metadata=client.V1ObjectMeta(
labels=pod_labels