ricardozanini commented on code in PR #2874:
URL:
https://github.com/apache/incubator-kie-tools/pull/2874#discussion_r1977772981
##########
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:
The downstream namespace name is different. @jakubschwan do you know which
NS we use downstream to fetch the catalog?
So here we might have to try both `community-operators` and `(?) - TBD`.
--
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]