This is an automated email from the ASF dual-hosted git repository.

pcongiusti pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/camel-k.git

commit d41d984259bb9d960a446a10e5d43e1c9fe90b46
Author: Pasquale Congiusti <[email protected]>
AuthorDate: Wed Jan 25 16:21:17 2023 +0100

    chore(test): don't install kamelet catalog
    
    as a default. They are required only in some test.
---
 e2e/support/test_support.go | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/e2e/support/test_support.go b/e2e/support/test_support.go
index 0030cacc3..f819566d0 100644
--- a/e2e/support/test_support.go
+++ b/e2e/support/test_support.go
@@ -250,6 +250,13 @@ func KamelInstallWithContext(ctx context.Context, 
operatorID string, namespace s
                installArgs = []string{"install", "-n", namespace, 
"--operator-id", operatorID}
        }
 
+       // Default behavior, we don't install Kamelet catalog to spare resources
+       // They need to be installed on purpose if required to be tested
+       enableKamelets := os.Getenv("CAMEL_K_TEST_KAMELET_CATALOG_INSTALL") == 
"true"
+       if !enableKamelets {
+               installArgs = append(installArgs, "--operator-env-vars", 
"KAMEL_INSTALL_DEFAULT_KAMELETS=false")
+       }
+
        logLevel := os.Getenv("CAMEL_K_TEST_LOG_LEVEL")
        if len(logLevel) > 0 {
                fmt.Printf("Setting log-level to %s\n", logLevel)

Reply via email to