Run scripts in Controller #12361
Replies: 1 comment 4 replies
-
I see this as an anti-pattern. The controller has way to many privileges in the cluster for this to be safe, and there is currently only ever one of them so it would be overloaded. It also really shouldn't actually have a script processor (/bin/bash) on it for security. Some executor plugin which used hot pooled pods to do the work would be nice for this and other quick work would be nice. |
Beta Was this translation helpful? Give feedback.
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi,
We have a way to run scripts in Argo Workflow but all of those require an image in the template and will run a container to execute the script.
https://argoproj.github.io/argo-workflows/workflow-concepts/#script
https://argoproj.github.io/argo-workflows/walk-through/scripts-and-results/
Is there a way to run scripts natively on the workflow-controller container itself, so that for trivial jobs like print etc we don't have to start a fresh container?
If not, then would it be advisable to extend the functionality of
ScriptTemplate
https://github.paypal.com/PaaS-R/kubeioargocd/blob/bc1872c1a700e08456361ede808464c250d58a4e/argo-workflows/pkg/apis/workflow/v1alpha1/workflow_types.go#L2925
so that there can be scripts which can run native on workflow-controller container itself?
Or, do you see this whole idea as an anti-pattern?
Please advise.
Thanks
Beta Was this translation helpful? Give feedback.
All reactions