Files
k8s-manifests/argocd/configmap-argocd-notifications-cm.yaml
T
chemavx cc8140760f argocd: configure Telegram notifications and add Application manifests
- Configure argocd-notifications-cm with Telegram service, templates and triggers
  for sync-succeeded, sync-failed, and app-degraded events
- Add application-polymarket-bot.yaml and application-n8n.yaml with notification
  subscription annotations (chat_id: 5138407666)

Note: requires kubectl patch of argocd-notifications-secret with telegram-token

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-04-25 09:56:35 +00:00

43 lines
1.2 KiB
YAML

apiVersion: v1
kind: ConfigMap
metadata:
labels:
app.kubernetes.io/component: notifications-controller
app.kubernetes.io/name: argocd-notifications-controller
app.kubernetes.io/part-of: argocd
name: argocd-notifications-cm
namespace: argocd
data:
service.telegram: |
token: $telegram-token
template.app-sync-succeeded: |
telegram:
message: |
✅ ArgoCD: {{.app.metadata.name}} sync completado
Revisión: {{.app.status.operationState.syncResult.revision | trunc 8}}
template.app-sync-failed: |
telegram:
message: |
❌ ArgoCD: {{.app.metadata.name}} sync fallido
{{if .app.status.operationState.message}}Error: {{.app.status.operationState.message}}{{end}}
template.app-degraded: |
telegram:
message: |
⚠️ ArgoCD: {{.app.metadata.name}} degradada
Health: {{.app.status.health.status}}
trigger.on-sync-succeeded: |
- when: app.status.operationState.phase in ['Succeeded']
send: [app-sync-succeeded]
trigger.on-sync-failed: |
- when: app.status.operationState.phase in ['Error', 'Failed']
send: [app-sync-failed]
trigger.on-degraded: |
- when: app.status.health.status == 'Degraded'
send: [app-degraded]