Skip to content

Usage of Outputs.Parameters in Http Template #13950

Answered by MasonM
anvmga asked this question in Q&A
Discussion options

You must be logged in to vote

It looks like there's a bug with HTTP templates where the outputs: always get overridden with result, but you can workaround that by extracting the data from result:

apiVersion: argoproj.io/v1alpha1
kind: Workflow
metadata:
  generateName: http-output-parameters-
spec:
  entrypoint: main
  templates:
  - name: main
    steps:
    - - name: get
        template: http-get

    - - name: print
        template: print-message
        arguments:
          parameters:
          - name: message
            value: "{{=jsonpath(steps.get.outputs.result, '$.origin')}}"
          - name: url
            value: "{{=jsonpath(steps.get.outputs.result, '$.url')}}"

  - name: http-get
    http:
      url: 

Replies: 1 comment 4 replies

Comment options

You must be logged in to vote
4 replies
@anvmga
Comment options

@MasonM
Comment options

MasonM Nov 29, 2024
Collaborator

@anvmga
Comment options

@anvmga
Comment options

Answer selected by anvmga
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