treblereel commented on code in PR #2874:
URL:
https://github.com/apache/incubator-kie-tools/pull/2874#discussion_r1986226682
##########
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:
@ricardozanini you mean iter over a set of namespaces until we find one?
--
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]