-
Notifications
You must be signed in to change notification settings - Fork 753
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use new notifications CR for configurations
Signed-off-by: Siddhesh Ghadi <[email protected]>
- Loading branch information
Showing
2 changed files
with
21 additions
and
19 deletions.
There are no files selected for viewing
21 changes: 21 additions & 0 deletions
21
tests/k8s/1-034_validate_webhook_notifications/02-add-notification-confs.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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}}"} | ||
19 changes: 0 additions & 19 deletions
19
tests/k8s/1-034_validate_webhook_notifications/02-update-notifications-cm.yaml
This file was deleted.
Oops, something went wrong.