Support multiple services run modes
Currently, the Pod can work either in fully-docker mode (all Plugins are launched in docker), or in fully-kubernetes mode (all Plugins will run in Kubernetes, as required for production).
The goal of this task is to add support for running local scripts as Plugins. The local scripts should receive all the same env variables as plugins running in docker/kubernetes, see Pod docs (or source code if you prefer) on which they are.
For this task, it is required to add a --insecure-plugin-script my_plugin_name=/path/to/my/script
CLI key. When running Plugins, Pod should detect if a plugin has an override. If it has an override, this local script should be run. Otherwise, the default mechanism should be used, which is always-docker or always-kubernetes, depending on the --use-kuberenetes
key, as it works already.
Alternative names for the new key:
--plugin-override-script
--plugin-insecure-override
--insecure-plugin-script
... ( feel free to suggest your alternative )
It should regardless be explained that there are security implications of running scripts locally, as opposed to docker (explain which they are).
┆Issue is synchronized with this Clickup task by Unito