From 835810316dbefeb56589982615d9b782bea7cd7b Mon Sep 17 00:00:00 2001 From: Dejan Zele Pejchev Date: Mon, 1 Apr 2024 14:45:42 +0200 Subject: [PATCH] fix subscription checker not being propagated to scheduler (#5266) (#5267) --- cmd/api-server/main.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/cmd/api-server/main.go b/cmd/api-server/main.go index a9ce402ca9f..efaeabfb3a1 100644 --- a/cmd/api-server/main.go +++ b/cmd/api-server/main.go @@ -534,6 +534,9 @@ func main() { cfg.TestkubeNamespace, cfg.TestkubeProTLSSecret, ) + if mode == common.ModeAgent { + sched.WithSubscriptionChecker(subscriptionChecker) + } slackLoader, err := newSlackLoader(cfg, envs) if err != nil {