treblereel commented on code in PR #2874:
URL: 
https://github.com/apache/incubator-kie-tools/pull/2874#discussion_r1979871531


##########
packages/kn-plugin-workflow/pkg/common/operator.go:
##########
@@ -91,3 +166,273 @@ func FindServiceFiles(directory string) ([]string, error) {
 
        return serviceFiles, nil
 }
+
+func (m OperatorManager) CheckOLMInstalled() error {
+       resources, err := 
m.dynamicClient.Resource(catalogSourcesGVR).List(context.Background(), 
v1.ListOptions{})
+       if err != nil {
+               return fmt.Errorf("❌ ERROR: OLM (Operator Lifecycle Manager) 
isn't installed, install OLM first : %v\n", err)
+       }
+       var operatorSource string
+
+       if m.isOpenshift {
+               operatorSource = "community-operators"

Review Comment:
   I tested openshift local, and as fat as I remember, there were such buildin 
namespace.
   It's possible to pass the requred namespace like this: `operator install 
--namespace <your_operator_namespace>`



-- 
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]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to