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
The following commit(s) were added to refs/heads/main by this push: new 773f68683 fix(cmd): promote should load catalog from k8s 773f68683 is described below commit 773f6868355e5acff4c647c5c0ffb0d1b038d4b0 Author: Pasquale Congiusti <pasquale.congiu...@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 a20731217..c3968582e 100644 --- a/pkg/cmd/promote.go +++ b/pkg/cmd/promote.go @@ -353,7 +353,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 }