forked from hashicorp/hcp-terraform-operator
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathworkspace-basicNotifications.yaml
51 lines (50 loc) · 1.16 KB
/
workspace-basicNotifications.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
# Copyright (c) HashiCorp, Inc.
# SPDX-License-Identifier: MPL-2.0
---
apiVersion: app.terraform.io/v1alpha2
kind: Workspace
metadata:
name: this
spec:
organization: kubernetes-operator
token:
secretKeyRef:
name: tfc-operator
key: token
name: kubernetes-operator-demo
notifications:
- name: SRESlack
type: slack
url: https://hooks.slack.com/
triggers:
- run:needs_attention
- assessment:check_failure
- assessment:drifted
- assessment:failed
- name: SREEmail
type: email
emailUsers:
triggers:
- run:completed
- name: SRETeams
type: microsoft-teams
enabled: false
url: https://example.webhook.office.com/
triggers:
- assessment:check_failure
- assessment:drifted
- assessment:failed
- run:applying
- run:completed
- run:created
- run:errored
- run:needs_attention
- run:planning
- name: SRELambda
type: generic
enabled: false
url: https://lambda.eu-central-1.amazonaws.com/
token: t0k3n
triggers:
- run:planning