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
Copy file name to clipboardExpand all lines: Act-3/argocd-notifications-config.yaml
+8-12Lines changed: 8 additions & 12 deletions
Original file line number
Diff line number
Diff line change
@@ -4,13 +4,10 @@ metadata:
4
4
name: argocd-notifications-cm
5
5
namespace: argocd
6
6
data:
7
-
# Cluster name - set this to your cluster context name
8
-
# You can set this automatically with: kubectl patch configmap argocd-notifications-cm -n argocd -p "{\"data\":{\"cluster-name\":\"$(kubectl config current-context)\"}}"
9
-
cluster-name: "CLUSTER_NAME_PLACEHOLDER"
10
-
11
-
# Resource Group - set this from node label kubernetes.azure.com/network-resourcegroup
12
-
# You can set this automatically with: kubectl patch configmap argocd-notifications-cm -n argocd -p "{\"data\":{\"resource-group\":\"$(kubectl get nodes -o jsonpath='{.items[0].metadata.labels.kubernetes\.azure\.com/network-resourcegroup}')\"}}"
13
-
resource-group: "RESOURCE_GROUP_PLACEHOLDER"
7
+
# Context variables for notifications
8
+
context: |
9
+
clusterName: CLUSTER_NAME_PLACEHOLDER
10
+
resourceGroup: RESOURCE_GROUP_PLACEHOLDER
14
11
15
12
# GitHub webhook service configuration
16
13
service.webhook.github-webhook: |
@@ -27,12 +24,12 @@ data:
27
24
28
25
# Trigger on sync failures
29
26
trigger.on-sync-failed: |
30
-
- when: app.status.operationState.phase in ['Error', 'Failed']
27
+
- when: app.status.operationState != nil && app.status.operationState.phase in ['Error', 'Failed']
0 commit comments