operator-framework / ansible-operator-plugins

Experimental extraction/refactoring of the Operator SDK's ansible operator plugin
Apache License 2.0
7 stars 17 forks source link

Underlying Go does not interpret folder structure as Ansible based #63

Open Praveenk8051 opened 2 months ago

Praveenk8051 commented 2 months ago

Bug Report

What did you do?

I have installed an Ansible Role which consists of plugins and modules rather than role name.

What did you expect to see?

The watches.yaml should be able to interpret modules and plugins as roles. Just the way Ansible does

What did you see instead? Under which circumstances?

role: xx was not found

Environment

Operator type:

Kubernetes cluster type:

$ operator-sdk version

v1.33.0

$ go version (if language is Go)

go1.21.0

$ kubectl version

Client Version: v1.29.3 Kustomize Version: v5.0.4-0.20230601165947-6ce0bf390ce3 Server Version: v1.28.3

Possible Solution

Go should not just interpret the following path as role ansible_collections/nameSpace/collection/roles/someRole. But also modules here https://github.com/solace-iot-team/ansible-solace-collection/tree/main/src/ansible_collections/solace/pubsub_plus