How do I Programmatically invoke Argo by submitting an appropriate .YAML file

9/27/2019

The only way I see so far to create a container using Argo is through the command line:

argo submit --watch fileName.yaml

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?

I've looked into documentation on Github: https://github.com/argoproj/argo. I did not find anything there.

-- Vydruth
argo-workflows
java
kotlin
kubernetes
yaml

2 Answers

12/7/2019

Next release v2.5 will support GRPC API call support all Argo workflow operations. you can programmatically do all workflow related operations. Even you can generate SDK also.

-- Sarabala
Source: StackOverflow

11/11/2019

I accomplished this task by invoking the Kubernetes API. Argo is a Custom Resource of Kubernetes, and has equivalent Kubernetes command

kubectl create -f https://raw.githubusercontent.com/argoproj/argo/master/examples/hello-world.yaml

I just had to invoke the above command using the Kubernetes API.

-- Vydruth
Source: StackOverflow