kiegroup / ruleops

This is a research effort, to explore this space. Not a supported capability. If you find this content interesting and you would like to contribute, feel free to contact us and reach out!
Apache License 2.0
1 stars 3 forks source link

Consider mock run playbook #19

Closed tarilabs closed 1 year ago

tarilabs commented 1 year ago

https://github.com/kiegroup/ruleops/blob/a3a90bcbab0a961478cd609b9abde80e32a188a2/ruleops/src/main/resources/rules/rules.drl#L41-L48

Consider adding a RHS action that would mock for running a playbook which would in turn: a. allocate a volume from a NAS, b. create a PV on k8s for it.

As the creation of the PV would solve the issue, since the PVC would get hold of the PV, therefore the deployment would bind on the PVC completed in turn.

tarilabs commented 1 year ago

Considering mocking an utility method sendEventDrivenAnsible( ... payload ...) in RHS which would delegate EDAnsible to decide how to provision the PV

ref https://www.ansible.com/blog/getting-started-with-event-driven-ansible