Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add namespace filter '*' #640

Closed
gecube opened this issue Nov 1, 2023 · 1 comment
Closed

add namespace filter '*' #640

gecube opened this issue Nov 1, 2023 · 1 comment

Comments

@gecube
Copy link

gecube commented Nov 1, 2023

Good day colleagues,

I am trying to make a global alert for the whole cluster. Right now I see that I can do something like this:

apiVersion: notification.toolkit.fluxcd.io/v1beta2
kind: Alert
metadata:
  name: slack-p0
  namespace: flux-system
spec:
  summary: "UAT cluster"
  providerRef:
    name: slack-p0
  eventSeverity: error
  eventSources:
    - kind: GitRepository
      name: '*'
    - kind: Kustomization
      name: '*'
    - kind: HelmRelease
      name: '*'

but in fact it creates alert only for ns flux-system according to doc here https://fluxcd.io/flux/components/notification/alerts/#event-sources and to my observations.

I'd like to do something like:

apiVersion: notification.toolkit.fluxcd.io/v1beta2
kind: Alert
metadata:
  name: slack-p0
  namespace: flux-system
spec:
  summary: "UAT cluster"
  providerRef:
    name: slack-p0
  eventSeverity: error
  eventSources:
    - kind: GitRepository
      name: '*'
      namespace: '*'
    - kind: Kustomization
      name: '*'
      namespace: '*'
    - kind: HelmRelease
      name: '*'
      namespace: '*'

right once and not creating a specific alert for every namespace I have in cluster (I have dynamic namespaces)

Any suggestions?

@makkes
Copy link
Member

makkes commented Nov 1, 2023

duplicate of #71

@makkes makkes closed this as completed Nov 1, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants