Skip to content

Commit

Permalink
fix(cmd): promote should load catalog from k8s
Browse files Browse the repository at this point in the history
  • Loading branch information
squakez committed May 16, 2023
1 parent 7aa2f87 commit 0e47ad1
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion pkg/cmd/promote.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down

0 comments on commit 0e47ad1

Please sign in to comment.