johnpoth commented on code in PR #2835:
URL: https://github.com/apache/camel-k/pull/2835#discussion_r842630739
##########
pkg/cmd/run.go:
##########
@@ -735,3 +780,350 @@ func resolvePodTemplate(ctx context.Context, templateSrc
string, spec *v1.Integr
}
return err
}
+
+func getPlatform(context context.Context, c client.Client, ns string)
(*v1.IntegrationPlatform, error) {
+ list := v1.NewIntegrationPlatformList()
+ if err := c.List(context, &list, ctrl.InNamespace(ns)); err != nil {
+ return nil, errors.Wrap(err, fmt.Sprintf("could not retrieve
integration platform from namespace %s", ns))
+ }
+ if len(list.Items) > 1 {
Review Comment:
Right, I'll reuse the helper method from the platform package, thanks !
--
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: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]