Skip to content

Commit

Permalink
[patch] Extend custom Application healthcheck to detect Helm chart re…
Browse files Browse the repository at this point in the history
…ndering failures (#1201)
  • Loading branch information
tomklapiscak authored Aug 23, 2024
1 parent 6ba96f0 commit b76fdf7
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions image/cli/mascli/templates/gitops/bootstrap/argocd.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -1055,6 +1055,21 @@ spec:
hs.status = "Progressing"
hs.message = ""
if obj.status ~= nil then
if obj.status.conditions ~= nil then
for i, condition in ipairs(obj.status.conditions) do
if condition.type == "ComparisonError" and condition.status ~= "False" then
hs.status = "Degraded"
if condition.message ~= nil then
hs.message = condition.message
else
hs.message = "ComparisonError"
end
return hs
end
end
end
if obj.status.health ~= nil then
hs.status = obj.status.health.status
if obj.status.health.message ~= nil then
Expand Down

0 comments on commit b76fdf7

Please sign in to comment.