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

Commit 66216fe

Browse files
docs: add helm sample (#315)
Signed-off-by: Ryota Sakamoto <sakamo.ryota+github@gmail.com>
1 parent def41c9 commit 66216fe

File tree

1 file changed

+32
-5
lines changed

1 file changed

+32
-5
lines changed

docs/index.md

Lines changed: 32 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -75,11 +75,38 @@ installing and configuring happen together:
7575
7676
```shell
7777
helm repo add argo https://argoproj.github.io/argo-helm
78-
helm install argo/argocd-notifications --generate-name \
79-
--set triggers[0].name=on-sync-succeeded \
80-
--set triggers[0].enabled=true \
81-
--set secret.notifiers.slack.enabled=true \
82-
--set secret.notifiers.slack.token=<my-token>
78+
helm install argo/argocd-notifications --generate-name -n argocd -f values.yaml
79+
```
80+
81+
```yaml
82+
argocdUrl: https://argocd.example.com
83+
84+
notifiers:
85+
service.email.gmail: |
86+
username: $email-username
87+
password: $email-password
88+
host: smtp.gmail.com
89+
port: 465
90+
from: $email-username
91+
92+
secret:
93+
items:
94+
email-username: <your-username>
95+
email-password: <your-password>
96+
97+
templates:
98+
template.app-deployed: |
99+
email:
100+
subject: New version of an application {{.app.metadata.name}} is up and running.
101+
message: |
102+
{{if eq .serviceType "slack"}}:white_check_mark:{{end}} Application {{.app.metadata.name}} is now running new version of deployments manifests.
103+
triggers:
104+
trigger.on-deployed: |
105+
- description: Application is synced and healthy. Triggered once per commit.
106+
oncePer: app.status.operationState.syncResult.revision
107+
send:
108+
- app-deployed
109+
when: app.status.operationState.phase in ['Succeeded'] and app.status.health.status == 'Healthy'
83110
```
84111
85112
For more information or to contribute, check out the [argoproj/argo-helm repository](https://github.com/argoproj/argo-helm/tree/master/charts/argocd-notifications).

0 commit comments

Comments
 (0)