You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by "bouskaJ (via GitHub)" <gi...@apache.org> on 2023/04/11 12:53:32 UTC
[GitHub] [camel-k] bouskaJ commented on a diff in pull request #4235: fix(#3836) Expose runtime details in kamel version -a -v
bouskaJ commented on code in PR #4235:
URL: https://github.com/apache/camel-k/pull/4235#discussion_r1162774238
##########
pkg/cmd/version.go:
##########
@@ -159,15 +161,30 @@ func operatorInfo(ctx context.Context, c client.Client, namespace string) (map[s
}
}
+ catalog, err := camel.LoadCatalog(ctx, c, namespace, v1.RuntimeSpec{Version: platform.Status.Build.RuntimeVersion, Provider: platform.Status.Build.RuntimeProvider})
+ if catalog != nil {
+ for k, v := range catalog.CamelCatalogSpec.Runtime.Metadata {
+ infos[k] = v
+ }
+ } else {
+ log.Debug("Can't load CamelCatalog.")
Review Comment:
Do you mean to return the error? It would fail the whole command (even for non-verbose output) Does it make sense?
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@camel.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org