Summary:
We have a golang application that submits Argo workflows to a kubernetes cluster upon requests. I'd like to pass a yaml file to one of the steps and I'm wondering what are the options for doing this.
Environment:
- Argo: v2.4.2
- K8s: 1.13.12-gke.25
Additional details:
Eventually, I would like to pass this file to the test step as shown in this example:
apiVersion: argoproj.io/v1alpha1
kind: Workflow
metadata:
generateName: test-
spec:
entrypoint: test
templates:
- name: test
container:
image: gcr.io/testproj/test:latest
command: [bash]
source: |
python test.py --config_file_path=/path/to/config.yaml
The image used in this step would have a python script that receives the path to this file then accesses it.
To submit the Argo workflows with golang, we use the following dependencies:
- https://github.com/argoproj/argo-workflows/tree/master/pkg/client
- https://github.com/argoproj/argo-workflows/tree/master/pkg/apis
Thank you.