Open DeChinees opened 2 years ago
This looks related to: https://github.com/argoproj/notifications-engine/issues/77
@DeChinees is this issue still relevant?
You didn't create the trigger templates.
@ErezWeiss Could you point to the doc which describes how to do that? Cannot find anything related here: https://argocd-notifications.readthedocs.io/en/stable/services/slack/#templates
My Secrets:
apiVersion: v1
kind: Secret
metadata:
name: argocd-notifications-secret
namespace: sys-argocd
type: Opaque
data:
slack-token: xxx
CM:
apiVersion: v1
kind: ConfigMap
metadata:
name: argocd-notifications-cm
namespace: sys-argocd
data:
defaultTriggers: >-
["on-created","on-deleted","on-deployed","on-health-degraded","on-sync-failed","on-sync-running","on-sync-status-unknown","on-sync-succeeded"]
service.slack: >-
{"token":"$slack-token","username":"ArgoCD Staging
Notifications","icon":":crossed_fingers:"}
@ErezWeiss are not they (templates) bundled by default?
@alexmt I guess that the doc should be more verbose about what needs to be done
Got this working. My Configmap and Secrets (examples) are here: https://gist.github.com/zentavr/c0a667d5fe6f87589df9e0ae812d1e3d
P.S.: there should be a separate process called argocd-notifications.
Problem
We try to create grafana annotations based on argocd statuses' by following this guide: https://argocd-notifications.readthedocs.io/en/latest/services/grafana/ Argocd does not seem to create annotations.
We are running version Argocd 2.5.2 (latest) an several Azure Kubernetes cluster.
Connectivity was tested successfully on the argcd-notification pod with the following curl command
Configmap
Application
Actual outcome
No annotations in grafana Argocd-notification log looks like
Expected outcome
Annotation created in grafana