You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Defining a health check with resourceHealthChecks for APIs like PersistentVolumeClaim just has a Kind and no group results in the following being generated in argocd-cm which does not work:
In the Argo CD Spec define a resourceHealthCheck for an object with no group, for example:
resourceHealthChecks:
- kind: PersistentVolumeClaim
check: |
hs = {}
if obj.status ~= nil then
if obj.status.phase ~= nil then
if obj.status.phase == "Pending" then
hs.status = "Healthy"
hs.message = obj.status.phase
return hs
end
if obj.status.phase == "Bound" then
hs.status = "Healthy"
hs.message = obj.status.phase
return hs
end
end
end
hs.status = "Progressing"
hs.message = "Waiting for PVC"
return hs
Expected behavior
The generated value in argocd-cm should not include the prefix underscore.
The text was updated successfully, but these errors were encountered:
gnunn1
changed the title
Using resourceHealthChecks for APIs with no Group is generated incorrectly
resourceHealthChecks for APIs with no Group is generated incorrectly
Jun 13, 2023
Describe the bug
Defining a health check with resourceHealthChecks for APIs like PersistentVolumeClaim just has a Kind and no group results in the following being generated in argocd-cm which does not work:
I think however this needs to be generated as follows without the underscore:
To Reproduce
Steps to reproduce the behavior:
Expected behavior
The generated value in argocd-cm should not include the prefix underscore.
The text was updated successfully, but these errors were encountered: