draios / instruqt-assets

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Script clean_up actions

pabloopez opened this issue · comments

Context

There might be some cases in which the script fails (no matter the reason) and some resources were already created. This resources can interfere with subsequent runs of the script.

Proposal

To avoid this, we should implement a clean_up function (aware of the type of install: helm, docker, etc.) that is executed when:

  • the script enters into an error state.
  • but also when the script starts. In case there's an error we can not detect, we want a fresh start for the script.