Skip to content
This repository was archived by the owner on Oct 19, 2024. It is now read-only.

Commit 1774352

Browse files
author
Alexander Matyushentsev
authored
chore: pull services documentation from github.com/argoproj/notifications-engine (#261)
1 parent d34f629 commit 1774352

File tree

14 files changed

+54
-30
lines changed

14 files changed

+54
-30
lines changed

Makefile

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,15 @@ test:
1111
lint:
1212
golangci-lint run
1313

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+
1420
.PHONY: catalog
1521
catalog:
1622
go run github.com/argoproj-labs/argocd-notifications/hack/gen catalog
17-
go run github.com/argoproj-labs/argocd-notifications/hack/gen docs
1823

1924
.PHONY: manifests
2025
manifests:
@@ -26,7 +31,7 @@ tools:
2631
go install github.com/golang/mock/[email protected]
2732

2833
.PHONY: generate
29-
generate: manifests catalog tools
34+
generate: manifests docs catalog tools
3035
go generate ./...
3136

3237
.PHONY: build

docs/services/email.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ The following snippet contains sample Gmail service configuration:
1818
apiVersion: v1
1919
kind: ConfigMap
2020
metadata:
21-
name: argocd-notifications-cm
21+
name: <config-map-name>
2222
data:
2323
service.email.gmail: |
2424
username: $email-username
@@ -34,7 +34,7 @@ Without authentication:
3434
apiVersion: v1
3535
kind: ConfigMap
3636
metadata:
37-
name: argocd-notifications-cm
37+
name: <config-map-name>
3838
data:
3939
service.email.example: |
4040
host: smtp.example.com
@@ -50,7 +50,7 @@ Notification templates support specifying subject for email notifications:
5050
apiVersion: v1
5151
kind: ConfigMap
5252
metadata:
53-
name: argocd-notifications-cm
53+
name: <config-map-name>
5454
data:
5555
template.app-sync-succeeded: |
5656
email:

docs/services/github.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ in `argocd-notifications-cm` ConfigMap
2424
apiVersion: v1
2525
kind: ConfigMap
2626
metadata:
27-
name: argocd-notifications-cm
27+
name: <config-map-name>
2828
data:
2929
service.github: |
3030
appID: <app-id>
@@ -36,7 +36,7 @@ data:
3636
apiVersion: v1
3737
kind: Secret
3838
metadata:
39-
name: argocd-notifications-secret
39+
name: <secret-name>
4040
stringData:
4141
github-privateKey: |
4242
-----BEGIN RSA PRIVATE KEY-----

docs/services/grafana.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ To be able to create Grafana annotation with argocd-notifications you have to cr
1515
apiVersion: v1
1616
kind: ConfigMap
1717
metadata:
18-
name: argocd-notifications-cm
18+
name: <config-map-name>
1919
data:
2020
service.grafana: |
2121
apiUrl: https://grafana.example.com/api
@@ -26,7 +26,7 @@ data:
2626
apiVersion: v1
2727
kind: Secret
2828
metadata:
29-
name: argocd-notifications-secret
29+
name: <secret-name>
3030
stringData:
3131
grafana-api-key: api-key
3232
```

docs/services/mattermost.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ in `argocd-notifications-cm` ConfigMap
1919
apiVersion: v1
2020
kind: ConfigMap
2121
metadata:
22-
name: argocd-notifications-cm
22+
name: <config-map-name>
2323
data:
2424
service.mattermost: |
2525
apiURL: <api-url>
@@ -30,7 +30,7 @@ data:
3030
apiVersion: v1
3131
kind: Secret
3232
metadata:
33-
name: argocd-notifications-secret
33+
name: <secret-name>
3434
stringData:
3535
mattermost-token: token
3636
```

docs/services/opsgenie.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ To be able to send notifications with argocd-notifications you have to create an
1919
apiVersion: v1
2020
kind: ConfigMap
2121
metadata:
22-
name: argocd-notifications-cm
22+
name: <config-map-name>
2323
data:
2424
service.opsgenie: |
2525
apiUrl: <api-url>

docs/services/overview.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,9 @@ The `slack` indicates that service sends slack notification; name is missing and
1212

1313
## Sensitive Data
1414

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
1616
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.
1818

1919
## Custom Names
2020

docs/services/slack.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
apiVersion: v1
2020
kind: Secret
2121
metadata:
22-
name: argocd-notifications-secret
22+
name: <secret-name>
2323
stringData:
2424
slack-token: <auth-token>
2525
```
@@ -30,7 +30,7 @@ stringData:
3030
apiVersion: v1
3131
kind: ConfigMap
3232
metadata:
33-
name: argocd-notifications-cm
33+
name: <config-map-name>
3434
data:
3535
service.slack: |
3636
apiURL: <url> # optional URL, e.g. https://example.com/api

docs/services/teams.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ The Teams notification service send message notifications using Teams bot and re
1818
apiVersion: v1
1919
kind: ConfigMap
2020
metadata:
21-
name: argocd-notifications-cm
21+
name: <config-map-name>
2222
data:
2323
service.teams: |
2424
recipientUrls:
@@ -29,7 +29,7 @@ data:
2929
apiVersion: v1
3030
kind: Secret
3131
metadata:
32-
name: argocd-notifications-secret
32+
name: <secret-name>
3333
stringData:
3434
channel-teams-url: https://example.com
3535
```

docs/services/telegram.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
# Telegram
22

33
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:
66

77
```yaml
88
apiVersion: v1
99
kind: ConfigMap
1010
metadata:
11-
name: argocd-notifications-cm
11+
name: <config-map-name>
1212
data:
1313
service.telegram: |
1414
token: $telegram-token

0 commit comments

Comments
 (0)