Skip to content

Commit

Permalink
Use new notifications CR for configurations
Browse files Browse the repository at this point in the history
Signed-off-by: Siddhesh Ghadi <[email protected]>
  • Loading branch information
svghadi committed Feb 27, 2024
1 parent b040fae commit 4c78f77
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 19 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
apiVersion: argoproj.io/v1alpha1
kind: NotificationsConfiguration
metadata:
name: default-notifications-configuration
spec:
services:
service.webhook.test-webhook: |
url: https://webhook/hooks/example
triggers:
trigger.test-on-created: |-
- description: Application is created.
send: ["test-app-created"]
when: "true"
templates:
template.test-app-created: |
webhook:
test-webhook:
method: POST
body: |
{"created":"{{.app.metadata.name}}","type":"{{(call .repo.GetAppDetails).Type}}"}

This file was deleted.

0 comments on commit 4c78f77

Please sign in to comment.