fluxcd / notification-controller

The GitOps Toolkit event forwarder and notification dispatcher
https://fluxcd.io
Apache License 2.0
150 stars 131 forks source link

Pod support for alerts #792

Closed pulkitanz closed 5 months ago

pulkitanz commented 5 months ago

I was wondering if there is something planned to add Pod in Slack alerts, this will help us a lot in configuring alerts for breaking kustomize controller.

apiVersion: notification.toolkit.fluxcd.io/v1beta3
kind: Alert
metadata:
  name: grafana
  namespace: monitoring
spec:
  providerRef:
    name: grafana
  eventSeverity: info
  eventSources:
    - kind: GitRepository
      name: '*'
      namespace: flux-system
  - kind: Pod
      name: '*'
      namespace: flux-system

Is there any other way to configure pod alerts using notification-controller?

stefanprodan commented 5 months ago

Flux notification-controller can only work for custom resources which are managed by Kubernetes controllers built with the GitOps Toolkit, the pod manager is not.