How to use ArgocdCommitStatus in multi environment ovelay #444
-
hi i m using gating promotion to promote staging to production, its 2 environment so i need to create 2 argocdCommitStatus staging and production? |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 2 replies
-
You just need one ArgoCDCommitStatus. It'll automatically infer the apps' environments from their |
Beta Was this translation helpful? Give feedback.
-
Okay, it works, but it's stuck at the "check pull request" step. I noticed that promoter-previous-env-nginx-apps-environment-prod-c48f6af4-3791ce08 is still pending, even though the CommitStatus from ArgoCDCommitStatus for both production and staging has succeeded.
|
Beta Was this translation helpful? Give feedback.
-
I’ve done some digging. At gitops-promoter/internal/controller/argocdcommitstatus_controller.go:476, the code is statically setting the key to argocd-health. My ArgocdHealth is set to nginx-apps-check-app, but since that key is ignored, in changetransferpolicy_controller.go:319 the code returns 0, causing the CommitStatus to stay pending. Why is argocd-health hardcoded? is this bug or am i wrong ? |
Beta Was this translation helpful? Give feedback.
move to issue #445