You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
title: "Deployment of {{.app.metadata.name}} on ArgoCD"
97
+
summary: "Application {{.app.metadata.name}} is now running new version of deployments manifests."
98
+
text: |
99
+
Application {{.app.metadata.name}} is now running new version of deployments manifests.
100
+
See more here: {{.context.argocdUrl}}/applications/{{.app.metadata.name}}?operation=true
87
101
```
88
102
89
103
**Notes**:
@@ -94,4 +108,9 @@ template.app-deployed: |
94
108
Setting this option to `false` is required if you would like to deploy older refs in your default branch.
95
109
For more information see the [GitHub Deployment API Docs](https://docs.github.com/en/rest/deployments/deployments?apiVersion=2022-11-28#create-a-deployment).
96
110
- If `github.pullRequestComment.content` is set to 65536 characters or more, it will be truncated.
111
+
- The `github.pullRequestComment.commentTag` parameter is used to identify the comment. If a comment with the specified tag is found, it will be updated (upserted). If no comment with the tag is found, a new comment will be created.
97
112
- Reference is optional. When set, it will be used as the ref to deploy. If not set, the revision will be used as the ref to deploy.
113
+
114
+
## Commit Statuses
115
+
116
+
The [method for generating commit statuses](https://docs.github.com/en/rest/commits/statuses?apiVersion=2022-11-28#create-a-commit-status) allows a maximum of 1000 attempts using the same commit SHA and context. Once this limit is reached, the API returns validation errors (HTTP 422). The notification engine ignores these errors and marks the notification attempts as completed.
Copy file name to clipboardExpand all lines: docs/services/opsgenie.md
+50-24Lines changed: 50 additions & 24 deletions
Original file line number
Diff line number
Diff line change
@@ -2,28 +2,34 @@
2
2
3
3
To be able to send notifications with argocd-notifications you have to create an [API Integration](https://docs.opsgenie.com/docs/integrations-overview) inside your [Opsgenie Team](https://docs.opsgenie.com/docs/teams).
4
4
5
-
1. Login to Opsgenie at https://app.opsgenie.com or https://app.eu.opsgenie.com (if you have an account in the european union)
6
-
2. Make sure you already have a team, if not follow this guide https://docs.opsgenie.com/docs/teams
7
-
3. Click "Teams" in the Menu on the left
8
-
4. Select the team that you want to notify
9
-
5. In the teams configuration menu select "Integrations"
10
-
6. Click "Add Integration" in the top right corner
11
-
7. Select "API" integration
12
-
8. Give your integration a name, copy the "API key" and safe it somewhere for later
13
-
9. Click "Edit" in the integration settings
14
-
10. Make sure the checkbox for "Create and Update Access" is selected, disable the other checkboxes to remove unnecessary permissions
15
-
11. Click "Save" at the bottom
16
-
12. Click "Turn on integration" in the top right corner
17
-
13. Check your browser for the correct server apiURL. If it is "app.opsgenie.com" then use the US/international api url`api.opsgenie.com` in the next step, otherwise use `api.eu.opsgenie.com` (European API).
18
-
14. You are finished with configuring Opsgenie. Now you need to configure argocd-notifications. Use the apiUrl, the team name and the apiKey to configure the Opsgenie integration in the `argocd-notifications-secret` secret.
19
-
15. You can find the example `argocd-notifications-cm` configuration at the below.
5
+
1. Login to Opsgenie at https://app.opsgenie.com or https://app.eu.opsgenie.com (if you have an account in the European Union).
6
+
2. Make sure you already have a team; if not, follow this guide:https://docs.opsgenie.com/docs/teams.
7
+
3. Click "Teams" in the Menu on the left.
8
+
4. Select the team that you want to notify.
9
+
5. In the team's configuration menu, select "Integrations".
10
+
6. Click "Add Integration" in the top right corner.
11
+
7. Select "API" integration.
12
+
8. Give your integration a name, copy the "API key", and save it somewhere for later.
13
+
9. Click "Edit" in the integration settings.
14
+
10. Make sure the checkbox for "Create and Update Access" is selected; disable the other checkboxes to remove unnecessary permissions.
15
+
11. Click "Save" at the bottom.
16
+
12. Click "Turn on integration" in the top right corner.
17
+
13. Check your browser for the correct server apiURL. If it is "app.opsgenie.com", then use the US/international API URL`api.opsgenie.com`; otherwise, use `api.eu.opsgenie.com` (European API).
18
+
14. You are finished with configuring Opsgenie. Now you need to configure argocd-notifications. Use the apiUrl, the team name, and the apiKey to configure the Opsgenie integration in the `argocd-notifications-secret` secret.
19
+
15. You can find the example `argocd-notifications-cm` configuration below.
|`description`| True |`string`| Description field of the alert that is generally used to provide a detailed information about the alert. |`Hello from Argo CD!`|
24
-
|`priority`| False |`string`| Priority level of the alert. Possible values are P1, P2, P3, P4 and P5. Default value is P3.|`P1`|
23
+
|`description`| True |`string`| Description field of the alert that is generally used to provide detailed information about the alert.|`Hello from Argo CD!`|
24
+
|`priority`| False |`string`| Priority level of the alert. Possible values are P1, P2, P3, P4, and P5. Default value is P3. |`P1`|
25
25
|`alias`| False |`string`| Client-defined identifier of the alert, that is also the key element of Alert De-Duplication. |`Life is too short for no alias`|
26
-
|`note`| False |`string`| Additional note that will be added while creating the alert. |`Error from Argo CD!`|
26
+
|`note`| False |`string`| Additional note that will be added while creating the alert. |`Error from Argo CD!`|
27
+
|`actions`| False |`[]string`| Custom actions that will be available for the alert. |`["Resolve", "Escalate"]`|
28
+
|`tags`| False |`[]string`| Tags of the alert. |`["critical", "deployment"]`|
29
+
|`visibleTo`| False |`[]alert.Responder`| Teams and users that the alert will become visible to without sending any notification. The `type` field is mandatory for each item, where possible values are `team` and `user`. In addition to the `type` field, either `id` or `name` should be provided for teams, and either `id` or `username` should be given for users. Please note that alerts will be visible to the teams specified within the `responders` field by default, so there is no need to re-specify them in the `visibleTo` field. |`[{Type: "team", Id: "team_id"}, {Type: "user", Id: "user_id"}]`|
30
+
|`details`| False |`map[string]string`| Map of key-value pairs to use as custom properties of the alert. |`{"environment": "production", "service": "web"}`|
31
+
|`entity`| False |`string`| Entity field of the alert that is generally used to specify which domain the alert is related to. |`web-server`|
32
+
|`user`| False |`string`| Display name of the request owner. |`admin_user`|
1.Click `Permissions` under `Add features and functionality` section and add`chat:write` scope. To use the optional username and icon overrides in the Slack notification service also add the `chat:write.customize` scope.
26
+
1.Go to `Scopes` > `Bot Token Scopes` > `Add an OAuth Scope`. Add`chat:write` scope. To use the optional username and icon overrides in the Slack notification service also add the `chat:write.customize` scope.
The messages can be aggregated to the slack threads by grouping key which can be specified in a `groupingKey` string field under `slack` field.
121
150
`groupingKey`is used across each template and works independently on each slack channel.
122
151
When multiple applications will be updated at the same time or frequently, the messages in slack channel can be easily read by aggregating with git commit hash, application name, etc.
Copy file name to clipboardExpand all lines: docs/triggers.md
+2-2Lines changed: 2 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -15,8 +15,8 @@ data:
15
15
```
16
16
17
17
* **trigger.\<name\>** - trigger name
18
-
* **when** - a predicate expression that returns true or false. The expression evaluation is powered by [antonmedv/expr](https://github.com/antonmedv/expr).
19
-
The condition language syntax is described at [Language-Definition.md](https://github.com/antonmedv/expr/blob/master/docs/Language-Definition.md).
18
+
* **when** - a predicate expression that returns true or false. The expression evaluation is powered by [expr-lang/expr](https://github.com/expr-lang/expr).
19
+
The condition language syntax is described at [Language-Definition.md](https://github.com/expr-lang/expr/blob/master/docs/Language-Definition.md).
20
20
* **send** - the templates list that should be used to generate a notification.
0 commit comments