Skip to content

Commit

Permalink
add workflow step to run workflow helper to send webhooks
Browse files Browse the repository at this point in the history
created a new argo template and added it to the end of the adviser workflow
  • Loading branch information
KPostOffice committed Jul 12, 2022
1 parent 2e6ec64 commit 8f24155
Showing 1 changed file with 38 additions and 0 deletions.
38 changes: 38 additions & 0 deletions core/base/argo-workflows/send-webhooks.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
---
apiVersion: argoproj.io/v1alpha1
kind: WorkflowTemplate
metadata:
name: trigger-integration
annotations:
operation: workflow-helpers
spec:
templates:
- name: send-webhooks
podSpecPatch: '{"serviceAccountName": "send-webhooks"}'
resubmitPendingPods: true
inputs:
parameters:
- name: document-id
- name: secret-namespace
container:
name: trigger-integration
image: workflow-helpers:latest
env:
- name: THOTH_WORKFLOW_TASK
value: send_webhooks
- name: DOCUMENT_ID
value: "{{inputs.parameters.document-id}}"
- name: THOTH_BACKEND_NAMESPACE
value: "{{inputs.parameters.secret-namespace}}"
- name: WEBHOOK_DIR
value: "/secret/callback"
resources:
limits:
cpu: 250m
memory: 256Mi
requests:
cpu: 250m
memory: 256Mi
volumeMounts:
- name: callback-secret
mountPath: "/secret/callback"

0 comments on commit 8f24155

Please sign in to comment.