From 1f879f59ca99ba53020637eebb9aa822aa18ef1d Mon Sep 17 00:00:00 2001
From: Povilas Versockas
Date: Fri, 18 Oct 2024 11:29:02 +0300
Subject: [PATCH] feat: [TKC-2595] do not merge
---
cmd/api-server/main.go | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/cmd/api-server/main.go b/cmd/api-server/main.go
index c0eed718e7..01c61fc8c4 100644
--- a/cmd/api-server/main.go
+++ b/cmd/api-server/main.go
@@ -198,7 +198,7 @@ func main() {
serviceAccountNames = schedulertcl.GetServiceAccountNamesFromConfig(serviceAccountNames, cfg.TestkubeExecutionNamespaces)
}
- if mode == common.ModeAgent && cfg.WorkflowStorage == "control-plane" {
+ if mode == common.ModeAgent && cfg.WorkflowStorage == "crd" {
testWorkflowsClient = cloudtestworkflow.NewCloudTestWorkflowRepository(grpcClient, grpcConn, cfg.TestkubeProAPIKey)
testWorkflowTemplatesClient = cloudtestworkflow.NewCloudTestWorkflowTemplateRepository(grpcClient, grpcConn, cfg.TestkubeProAPIKey)
} else {