<p>The only way I see so far to create a container using Argo is through the command line:</p>
<p><code>argo submit --watch fileName.yaml</code></p>
<p>I would like to invoke Argo programmatically in Kotlin or Java in order to automate this process. Is there a way I can do that?</p>
<p>I've looked into documentation on Github: <a href="https://github.com/argoproj/argo-workflows" rel="nofollow noreferrer">https://github.com/argoproj/argo-workflows</a>. I did not find anything there.</p>

Vydruth
<p>I accomplished this task by invoking the Kubernetes API. Argo is a Custom Resource of Kubernetes, and has equivalent Kubernetes command</p>
<p><code>kubectl create -f https://raw.githubusercontent.com/argoproj/argo-workflows/master/examples/hello-world.yaml</code></p>
<p>I just had to invoke the above command using the Kubernetes API.</p>
