This repository was archived by the owner on Oct 19, 2024. It is now read-only.
File tree Expand file tree Collapse file tree 14 files changed +54
-30
lines changed Expand file tree Collapse file tree 14 files changed +54
-30
lines changed Original file line number Diff line number Diff line change @@ -11,10 +11,15 @@ test:
11
11
lint :
12
12
golangci-lint run
13
13
14
+ .PHONY : docs
15
+ docs :
16
+ rm -rf vendor && go mod vendor && mkdir -p docs/services
17
+ cp -r vendor/github.com/argoproj/notifications-engine/docs/services/* docs/services && rm docs/services/* .go && rm -rf vendor
18
+ go run github.com/argoproj-labs/argocd-notifications/hack/gen docs
19
+
14
20
.PHONY : catalog
15
21
catalog :
16
22
go run github.com/argoproj-labs/argocd-notifications/hack/gen catalog
17
- go run github.com/argoproj-labs/argocd-notifications/hack/gen docs
18
23
19
24
.PHONY : manifests
20
25
manifests :
26
31
go install github.com/golang/mock/
[email protected]
27
32
28
33
.PHONY : generate
29
- generate : manifests catalog tools
34
+ generate : manifests docs catalog tools
30
35
go generate ./...
31
36
32
37
.PHONY : build
Original file line number Diff line number Diff line change @@ -18,7 +18,7 @@ The following snippet contains sample Gmail service configuration:
18
18
apiVersion : v1
19
19
kind : ConfigMap
20
20
metadata :
21
- name : argocd-notifications-cm
21
+ name : <config-map-name>
22
22
data :
23
23
service.email.gmail : |
24
24
username: $email-username
@@ -34,7 +34,7 @@ Without authentication:
34
34
apiVersion : v1
35
35
kind : ConfigMap
36
36
metadata :
37
- name : argocd-notifications-cm
37
+ name : <config-map-name>
38
38
data :
39
39
service.email.example : |
40
40
host: smtp.example.com
@@ -50,7 +50,7 @@ Notification templates support specifying subject for email notifications:
50
50
apiVersion : v1
51
51
kind : ConfigMap
52
52
metadata :
53
- name : argocd-notifications-cm
53
+ name : <config-map-name>
54
54
data :
55
55
template.app-sync-succeeded : |
56
56
email:
Original file line number Diff line number Diff line change @@ -24,7 +24,7 @@ in `argocd-notifications-cm` ConfigMap
24
24
apiVersion : v1
25
25
kind : ConfigMap
26
26
metadata :
27
- name : argocd-notifications-cm
27
+ name : <config-map-name>
28
28
data :
29
29
service.github : |
30
30
appID: <app-id>
36
36
apiVersion : v1
37
37
kind : Secret
38
38
metadata :
39
- name : argocd-notifications- secret
39
+ name : < secret-name>
40
40
stringData :
41
41
github-privateKey : |
42
42
-----BEGIN RSA PRIVATE KEY-----
Original file line number Diff line number Diff line change @@ -15,7 +15,7 @@ To be able to create Grafana annotation with argocd-notifications you have to cr
15
15
apiVersion : v1
16
16
kind : ConfigMap
17
17
metadata :
18
- name : argocd-notifications-cm
18
+ name : <config-map-name>
19
19
data :
20
20
service.grafana : |
21
21
apiUrl: https://grafana.example.com/api
26
26
apiVersion : v1
27
27
kind : Secret
28
28
metadata :
29
- name : argocd-notifications- secret
29
+ name : < secret-name>
30
30
stringData :
31
31
grafana-api-key : api-key
32
32
` ` `
Original file line number Diff line number Diff line change @@ -19,7 +19,7 @@ in `argocd-notifications-cm` ConfigMap
19
19
apiVersion : v1
20
20
kind : ConfigMap
21
21
metadata :
22
- name : argocd-notifications-cm
22
+ name : <config-map-name>
23
23
data :
24
24
service.mattermost : |
25
25
apiURL: <api-url>
30
30
apiVersion : v1
31
31
kind : Secret
32
32
metadata :
33
- name : argocd-notifications- secret
33
+ name : < secret-name>
34
34
stringData :
35
35
mattermost-token : token
36
36
` ` `
Original file line number Diff line number Diff line change @@ -19,7 +19,7 @@ To be able to send notifications with argocd-notifications you have to create an
19
19
apiVersion : v1
20
20
kind : ConfigMap
21
21
metadata :
22
- name : argocd-notifications-cm
22
+ name : <config-map-name>
23
23
data :
24
24
service.opsgenie : |
25
25
apiUrl: <api-url>
Original file line number Diff line number Diff line change @@ -12,9 +12,9 @@ The `slack` indicates that service sends slack notification; name is missing and
12
12
13
13
# # Sensitive Data
14
14
15
- Sensitive data like authentication tokens should be stored in `argocd-notifications- secret` Secret and can be referenced in
15
+ Sensitive data like authentication tokens should be stored in `< secret-name> ` Secret and can be referenced in
16
16
service configuration using `$<secret-key>` format. For example `$slack-token` referencing value of key `slack-token` in
17
- ` argocd-notifications- secret` Secret.
17
+ ` < secret-name> ` Secret.
18
18
19
19
# # Custom Names
20
20
Original file line number Diff line number Diff line change 19
19
apiVersion : v1
20
20
kind : Secret
21
21
metadata :
22
- name : argocd-notifications- secret
22
+ name : < secret-name>
23
23
stringData :
24
24
slack-token : <auth-token>
25
25
` ` `
@@ -30,7 +30,7 @@ stringData:
30
30
apiVersion: v1
31
31
kind: ConfigMap
32
32
metadata:
33
- name: argocd-notifications-cm
33
+ name: <config-map-name>
34
34
data:
35
35
service.slack: |
36
36
apiURL: <url> # optional URL, e.g. https://example.com/api
Original file line number Diff line number Diff line change @@ -18,7 +18,7 @@ The Teams notification service send message notifications using Teams bot and re
18
18
apiVersion : v1
19
19
kind : ConfigMap
20
20
metadata :
21
- name : argocd-notifications-cm
21
+ name : <config-map-name>
22
22
data :
23
23
service.teams : |
24
24
recipientUrls:
29
29
apiVersion : v1
30
30
kind : Secret
31
31
metadata :
32
- name : argocd-notifications- secret
32
+ name : < secret-name>
33
33
stringData :
34
34
channel-teams-url : https://example.com
35
35
` ` `
Original file line number Diff line number Diff line change 1
1
# Telegram
2
2
3
3
1 . Get an API token using [ @Botfather ] ( https://t.me/Botfather ) .
4
- 2 . Store token in ` argocd_notifications- secret` Secret and configure telegram integration
5
- in ` argocd-notifications-cm ` ConfigMap:
4
+ 2 . Store token in ` < secret-name> ` Secret and configure telegram integration
5
+ in ` <config-map-name> ` ConfigMap:
6
6
7
7
``` yaml
8
8
apiVersion : v1
9
9
kind : ConfigMap
10
10
metadata :
11
- name : argocd-notifications-cm
11
+ name : <config-map-name>
12
12
data :
13
13
service.telegram : |
14
14
token: $telegram-token
You can’t perform that action at this time.
0 commit comments