From 98a565c2819a01ce4a1093b0b0de002429347050 Mon Sep 17 00:00:00 2001 From: Premkumar Bhaskal Date: Mon, 27 Nov 2023 17:31:16 +0530 Subject: [PATCH] updating default value for apply and wait concurrency Signed-off-by: Premkumar Bhaskal --- pkg/config/config.go | 1 + pkg/config/config_test.go | 5 ++++- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/pkg/config/config.go b/pkg/config/config.go index efdcf96d7..87f9c7ffd 100644 --- a/pkg/config/config.go +++ b/pkg/config/config.go @@ -171,6 +171,7 @@ func (gc *Config) KappDeployRawOptions() []string { // Set default first so that it can be overridden by user provided options. kappOptions = append(kappOptions, "--app-changes-max-to-keep=5") kappOptions = append(kappOptions, "--kube-api-qps=50", "--kube-api-burst=100") + kappOptions = append(kappOptions, "--apply-concurrency=10", "--wait-concurrency=10") kappOptions = append(kappOptions, gc.data.kappDeployRawOptions...) return kappOptions diff --git a/pkg/config/config_test.go b/pkg/config/config_test.go index ee07ff381..6806f118f 100644 --- a/pkg/config/config_test.go +++ b/pkg/config/config_test.go @@ -166,7 +166,10 @@ func Test_NewConfig_AppMinimumSyncPeriod(t *testing.T) { } func Test_NewConfig_KappDeployRawOptions(t *testing.T) { - defaultRawOptions := []string{"--app-changes-max-to-keep=5", "--kube-api-qps=50", "--kube-api-burst=100"} + defaultRawOptions := []string{ + "--app-changes-max-to-keep=5", "--kube-api-qps=50", "--kube-api-burst=100", + "--apply-concurrency=10", "--wait-concurrency=10", + } t.Run("with empty config value, returns just default", func(t *testing.T) { secret := &v1.Secret{ ObjectMeta: metav1.ObjectMeta{