This is an automated email from the ASF dual-hosted git repository.
pcongiusti pushed a commit to branch release-1.12.x
in repository https://gitbox.apache.org/repos/asf/camel-k.git
The following commit(s) were added to refs/heads/release-1.12.x by this push:
new 0e47ad17f fix(cmd): promote should load catalog from k8s
0e47ad17f is described below
commit 0e47ad17f185ea40abebadc6d829e66caf12e588
Author: Pasquale Congiusti <[email protected]>
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 fba185afb..751801e69 100644
--- a/pkg/cmd/promote.go
+++ b/pkg/cmd/promote.go
@@ -355,7 +355,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
}