title: What's the best way to inject a yaml file into an Argo workflow step?
body: <h3>Summary:</h3>
  <p>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.</p>
  <h3>Environment:</h3>
  <ul>
  <li>Argo: v2.4.2</li>
  <li>K8s: 1.13.12-gke.25</li>
  </ul>
  <h3>Additional details:</h3>
  <p>Eventually, I would like to pass this file to the test step as shown in this example:</p>
  <pre class="lang-yaml prettyprint-override"><code>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
  </code></pre>
  <p>The image used in this step would have a python script that receives the path to this file then accesses it.</p>
  <p>To submit the Argo workflows with golang, we use the following dependencies:</p>
  <ul>
  <li><a href="https://github.com/argoproj/argo-workflows/tree/master/pkg/client" rel="nofollow noreferrer">https://github.com/argoproj/argo-workflows/tree/master/pkg/client</a></li>
  <li><a href="https://github.com/argoproj/argo-workflows/tree/master/pkg/apis" rel="nofollow noreferrer">https://github.com/argoproj/argo-workflows/tree/master/pkg/apis</a></li>
  </ul>
  <p>Thank you.</p>