robusta
robusta copied to clipboard
Easy way to develop and test custom actions
Is your feature request related to a problem? Learning how to write playbooks and debugging them is a bit tricky, as you need to create an entire pip package folder structure just for a quick test.
Making a quicker way to test playbooks can help with learning on how to write actions & prototyping.
Describe the solution you'd like
Add the following:
- Add a new endpoint in Robusta runner that gets a python file and loads all playbooks immediately
- Add a new Robusta CLI command that gets a python file and uses this endpoint:
robusta playbooks load-actions ./my-action.py
Notes
- make sure that loading the same actions again replaces the old instances
- the action is only loaded into memory, meaning if robusta-runner is restarted, the action is lost. This is okay because the command is intended for development and testing purposes only.
Context
- Current solution creating actions in a custom repo