robusta icon indicating copy to clipboard operation
robusta copied to clipboard

Easy way to develop and test custom actions

Open Sheeproid opened this issue 2 years ago • 0 comments

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:

  1. Add a new endpoint in Robusta runner that gets a python file and loads all playbooks immediately
  2. 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

Sheeproid avatar Sep 18 '22 12:09 Sheeproid