argoproj / argo-cd

Declarative Continuous Deployment for Kubernetes
https://argo-cd.readthedocs.io
Apache License 2.0
18.01k stars 5.49k forks source link

application doesn't refresh automatically after revision branch is being created, although a webhook exists #20922

Open alinachan11 opened 1 day ago

alinachan11 commented 1 day ago

Describe the bug After ci-cd the revision on the application points toward a not-existing yet branch. When the new branch is created, the application is still stuck on earlier error message and only after a manual refresh the application returns to a green state. This problem happens occasionally, and according to logs I do see most of the times in the argocd server that a webhook did arrive. I managed to reproduce the problem only on bitbucket.

To Reproduce

  1. create argocd application.
  2. change argocd application to point toward a non existent branch
  3. create the new branch

Expected behavior After the new branch is created the application automatically refreshes itself.

Version argocd version: 2.11.4 ocp version: 4-10

andrii-korotkov-verkada commented 1 day ago

There are refreshes every 3 min by default. Are they helpful? I think Argo doesn't know a way to know about branch now being available unless you set up webhooks https://argo-cd.readthedocs.io/en/stable/operator-manual/webhook/. Please, let me know more details about what's happening and whether these points help.