From d053b1cc2b8a0f50b0f44498e3edf5f44c5728d4 Mon Sep 17 00:00:00 2001 From: chenk Date: Wed, 4 Oct 2023 14:52:00 +0300 Subject: [PATCH] fix: node collector priority class (#234) 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 6400365..ba6cd75 100644 --- a/pkg/jobs/collector.go +++ b/pkg/jobs/collector.go @@ -82,8 +82,8 @@ func WithJobNamespace(namespace string) CollectorOption { } } -func WithPodPriorityClassName(priorityClassName string) JobOption { - return func(jc *JobBuilder) { +func WithPodPriorityClassName(priorityClassName string) CollectorOption { + return func(jc *jobCollector) { jc.priorityClassName = priorityClassName } }