error setting app health: failed to get resource health for "Policy" with name "XXXX" in namespace "local-cluster": :35: invalid value (nil) at index 1 in table for concat stack traceback: [G]: in function 'concat' :35: in main chunk [G]: ?
I beleive I have narrowed down why this wasn't being caught by tests because it only seems to be an issue when the NonCompliant hit is AFTER the Compliant hit due to the way indexing and the way table.getn worked.
Checklist:
argocd version
.Describe the bug
When using https://github.com/argoproj/argo-cd/blob/master/resource_customizations/policy.open-cluster-management.io/Policy/health.lua i get an error of the following type:
I beleive I have narrowed down why this wasn't being caught by tests because it only seems to be an issue when the NonCompliant hit is AFTER the Compliant hit due to the way indexing and the way
table.getn
worked.To Reproduce
Expected behavior
Status should be correctly returned such as:
Screenshots
N/A
Version
Logs
If something other then the error message is needed let me know.