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

AgroCD Notifications doesn't work with different namespaces #12912

Closed
GoSiddhartha opened this issue Mar 17, 2023 · 5 comments
Closed

AgroCD Notifications doesn't work with different namespaces #12912

GoSiddhartha opened this issue Mar 17, 2023 · 5 comments
Labels
bug Something isn't working

Comments

@GoSiddhartha
Copy link

Hello team,
I have been trying to implement ArgoCd notifications into our clusters. First let me explain my use case and scenario.
We have k8s clusters running and they are provisioned and maintained my a centralised team. They have installed ArgoCd and also notification in their foundation namespace which we use with our applications and configs. We do not have control on their namespaces so I installed ArgoCD notification controller separately in a different namespace.
Will all configured I can see the notification pod logs as below -
time="2023-02-23T16:02:47Z" level=info msg="ArgoCD Notifications Controller is starting" built="2023-02-16T15:05:14Z" commit=6e02f8b23201b0620a4ff1bce5d38229ba1eb02e namespace=infra version=v2.6.2+6e02f8b 3 {"level":"info","msg":"serving metrics on port 9001","time":"2023-02-23T16:02:47Z"} 2 {"level":"info","msg":"loading configuration 9001","time":"2023-02-23T16:02:47Z"} 1 {"level":"warning","msg":"Controller is running.","time":"2023-02-23T16:02:47Z"}

When I try to delete a deployment I get no teams message and no logs to troubleshoot. Am I doing something wrong?

This is the deployment image I use "quay.io/argoproj/argocd:v2.6.2"

The cm is configured as below and the templates and triggers are copied from the latest documentation

apiVersion: v1
  data:
    context: |
      argocdUrl: $argourl
      environmentName: dev
      region: west-europe
    service.teams: |
      recipientUrls:
        channelName: $msteams
    service.webhook.msteams: |
      url: $msteams
    subscriptions: |
      - recipients:
        - msteams
        triggers:
        - on-sync-succeeded
        - on-created
        - on-deleted
        - on-deployed
        - on-health-degraded
        - on-sync-failed
        - on-sync-running
        - on-sync-status-unknown
@GoSiddhartha GoSiddhartha added the bug Something isn't working label Mar 17, 2023
@Peddiz
Copy link

Peddiz commented Apr 25, 2023

Hi @GoSiddhartha Were you able to find alternative fix for this problem, I'm facing this issue too.

@ketronkowski
Copy link

Any feedback from ArgoCD maintainers on the PR from @Niksko as a fix for this issue?

@marlenepereira
Copy link

marlenepereira commented May 29, 2023

It would be great to have @Niksko's fix reviewed.

@crenshaw-dev
Copy link
Member

I'm hoping Jann will have time to review, since he wrote apps in any namespace. If not, I'll venture out ld my comfort zone and take a look. 🙂

@crenshaw-dev
Copy link
Member

Resolved by #15702

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
5 participants