Skip to content

How to trigger an existing Argo Workflow? #1080

Answered by joyofdata
joyofdata asked this question in Q&A
Discussion options

You must be logged in to vote

#1032

apiVersion: argoproj.io/v1alpha1
kind: Sensor
metadata:
  name: webhook
spec:
  template:
    serviceAccountName: argo-events-sa
  dependencies:
    - name: test-dep
      eventSourceName: webhook
      eventName: example
  triggers:
    - template:
        name: argo-workflow-trigger
        argoWorkflow:
          group: argoproj.io
          version: v1alpha1
          resource: workflows
          operation: resubmit
          source:
            resource:
              apiVersion: argoproj.io/v1alpha1
              kind: Workflow
              metadata:
                name: test-wf
                namespace: argo

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@whynowy
Comment options

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