You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by pc...@apache.org on 2023/05/16 09:58:24 UTC

[camel-k] branch release-1.10.x updated: fix(cmd): promote should load catalog from k8s

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

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


The following commit(s) were added to refs/heads/release-1.10.x by this push:
     new a51b6b702 fix(cmd): promote should load catalog from k8s
a51b6b702 is described below

commit a51b6b70209753391e059ce96f3bae78f1de565b
Author: Pasquale Congiusti <pa...@gmail.com>
AuthorDate: Thu May 11 13:21:38 2023 +0200

    fix(cmd): promote should load catalog from k8s
---
 pkg/cmd/promote.go | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/pkg/cmd/promote.go b/pkg/cmd/promote.go
index 3ebd67bbc..f35d2b9c5 100644
--- a/pkg/cmd/promote.go
+++ b/pkg/cmd/promote.go
@@ -344,7 +344,11 @@ func toPropertyMap(src interface{}) (map[string]interface{}, error) {
 }
 
 func (o *promoteCmdOptions) listKamelets(c client.Client, it *v1.Integration) ([]string, error) {
-	catalog, err := camel.DefaultCatalog()
+	runtime := v1.RuntimeSpec{
+		Version:  it.Status.RuntimeVersion,
+		Provider: v1.RuntimeProviderQuarkus,
+	}
+	catalog, err := camel.LoadCatalog(o.Context, c, o.Namespace, runtime)
 	if err != nil {
 		return nil, err
 	}