diff --git a/image/cli/mascli/templates/gitops/bootstrap/argocd.yaml.j2 b/image/cli/mascli/templates/gitops/bootstrap/argocd.yaml.j2 index 8fe1c58717f..3f32a030da4 100644 --- a/image/cli/mascli/templates/gitops/bootstrap/argocd.yaml.j2 +++ b/image/cli/mascli/templates/gitops/bootstrap/argocd.yaml.j2 @@ -950,13 +950,13 @@ spec: if obj.status ~= nil then if obj.status.conditions ~= nil then for i, condition in ipairs(obj.status.conditions) do - if condition.type == "Failure" and condition.status == "True" then - hs.status = "Degraded" + if condition.type == "Ready" and condition.status == "True" then + hs.status = "Healthy" hs.message = condition.message return hs end - if condition.type == "Ready" and condition.status == "True" then - hs.status = "Healthy" + if condition.type == "Failure" and condition.status == "True" then + hs.status = "Degraded" hs.message = condition.message return hs end