From 09ea26683333b46e4a32891b1b8f0245becba799 Mon Sep 17 00:00:00 2001 From: chenk Date: Mon, 25 Dec 2023 11:58:36 +0200 Subject: [PATCH] feat: active deadline seconds support (#273) Signed-off-by: chenk --- pkg/jobs/collector.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkg/jobs/collector.go b/pkg/jobs/collector.go index 51aa0ea..513146c 100644 --- a/pkg/jobs/collector.go +++ b/pkg/jobs/collector.go @@ -227,7 +227,7 @@ func (jb *jobCollector) ApplyAndCollect(ctx context.Context, nodeName string) (s WithAnnotation(jb.annotation), WithJobServiceAccount(serviceAccount), WithLabels(jb.labels), - WithJobTimeout(jb.timeout), + WithJobTimeout(jb.collectorTimeout), withSecurityContext(jb.securityContext), withPodSecurityContext(jb.podSecurityContext), WithNodeCollectorImageRef(jb.imageRef), @@ -291,7 +291,7 @@ func (jb *jobCollector) Apply(ctx context.Context, nodeName string) (*batchv1.Jo WithTolerations(jb.tolerations), WithJobServiceAccount(jb.serviceAccount), WithNodeSelector(nodeName), - WithJobTimeout(jb.timeout), + WithJobTimeout(jb.collectorTimeout), WithNodeCollectorImageRef(jb.imageRef), WithAnnotation(jb.annotation), WithTemplate(jb.templateName),