INNER CODE UNIT · Python
run_argo_command
IBM/AutoMLPipeline.jl · argo-workflow/agents/argo-k8s.py:316
def run_argo_command(command: str):
"""
Execute any argo command with full privileges (use with caution).
This tool allows execution of any argo command, including potentially
destructive operations like delete, stop, terminate, submit, etc. It provides
complete access to your Argo server with the same permissions as
your kubectl configuration.
Args:
command (str): The complete argo command to execute. Must start with "argo".
Examples: "argo submit -n argo --from clusterworkflowtemplate/automlai-dualsearch"
Returns:
str: The stdout output from the argo command, or an error message if the
command fails or doesn't start with "argo".
Example: