Skip to content

Access to a workflow artifact #5654

Answered by wesleyscholl
laymain asked this question in Q&A
Discussion options

You must be logged in to vote

@laymain

In the workflow above, the intention is to pass a raw artifact defined at the workflow level to a template. However, referencing artifacts at the workflow level directly within templates using expressions like {{workflow.inputs.artifacts.content}} isn't supported. Instead, define the artifact at the workflow level and pass it explicitly to the template using arguments.

Functional workflow example:

apiVersion: argoproj.io/v1alpha1
kind: Workflow
metadata:
  generateName: artifact-test-
spec:
  entrypoint: start
  templates:
    - name: start
      inputs: 
        artifacts:
          - name: content # Input artifact
            path: /etc/file # Artifact path
            raw: # T…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by laymain
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants