fix: cert-manager.io/certificate health.lua for consistent issuing (Issue #16523)#16520
fix: cert-manager.io/certificate health.lua for consistent issuing (Issue #16523)#16520ishitasequeira merged 3 commits intoargoproj:masterfrom
Conversation
Signed-off-by: Chris Murray <chris@distrail.io>
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #16520 +/- ##
=======================================
Coverage 49.49% 49.49%
=======================================
Files 270 270
Lines 47485 47485
=======================================
+ Hits 23501 23502 +1
+ Misses 21673 21672 -1
Partials 2311 2311 ☔ View full report in Codecov by Sentry. |
Signed-off-by: Chris Murray <chris@distrail.io>
Signed-off-by: Chris Murray <chris@distrail.io>
ishitasequeira
left a comment
There was a problem hiding this comment.
Thanks @chr15murray!! LGTM!!
…ssue argoproj#16523) (argoproj#16520) * Update cert-manager.opcertificate health.lua Signed-off-by: Chris Murray <chris@distrail.io> * adding test case for cert issuing Signed-off-by: Chris Murray <chris@distrail.io> * fixing typo Signed-off-by: Chris Murray <chris@distrail.io> --------- Signed-off-by: Chris Murray <chris@distrail.io>
…ssue argoproj#16523) (argoproj#16520) * Update cert-manager.opcertificate health.lua Signed-off-by: Chris Murray <chris@distrail.io> * adding test case for cert issuing Signed-off-by: Chris Murray <chris@distrail.io> * fixing typo Signed-off-by: Chris Murray <chris@distrail.io> --------- Signed-off-by: Chris Murray <chris@distrail.io>
…ssue argoproj#16523) (argoproj#16520) * Update cert-manager.opcertificate health.lua Signed-off-by: Chris Murray <chris@distrail.io> * adding test case for cert issuing Signed-off-by: Chris Murray <chris@distrail.io> * fixing typo Signed-off-by: Chris Murray <chris@distrail.io> --------- Signed-off-by: Chris Murray <chris@distrail.io>
…ssue argoproj#16523) (argoproj#16520) * Update cert-manager.opcertificate health.lua Signed-off-by: Chris Murray <chris@distrail.io> * adding test case for cert issuing Signed-off-by: Chris Murray <chris@distrail.io> * fixing typo Signed-off-by: Chris Murray <chris@distrail.io> --------- Signed-off-by: Chris Murray <chris@distrail.io> Signed-off-by: Kevin Lyda <kevin@lyda.ie>
|
With this change, certificates always show as "Progressing". Given that it loops over all status first, looking for type As an example, here is the status field The certificate renewal was issued, but the logic will see the second status and set the status to Progressing. |
|
@cyrus-mc can you open an issue? |
|
@crenshaw-dev Issue created. |
…ssue argoproj#16523) (argoproj#16520) * Update cert-manager.opcertificate health.lua Signed-off-by: Chris Murray <chris@distrail.io> * adding test case for cert issuing Signed-off-by: Chris Murray <chris@distrail.io> * fixing typo Signed-off-by: Chris Murray <chris@distrail.io> --------- Signed-off-by: Chris Murray <chris@distrail.io>
Fixes [ISSUE #16523]
Checklist:
The health of a cert-manager.io/certificate is not always consistent within ArgoCD when Issuing and Ready states both exist. This occurs because the
Ready: Falsestate may come first or second in the status conditions.Example Degraded
Example Issuing
This PR checks for Issuing first and places the resource health into 'Progressing' state if True before considering the Ready status.
I've also add a new test case for this. With the previous health check that test case would be in a Degraded state.