From e2fe3cb7f7f3d66dd4afe72f20d667b6cebf25f4 Mon Sep 17 00:00:00 2001 From: Nivedithaa Mahendran Date: Tue, 5 May 2026 16:00:07 +0530 Subject: [PATCH] [patch] MongoCfg health status showing healthy even when failed true Issue: #MASCORE-13868 --- .../cli/mascli/templates/gitops/bootstrap/argocd.yaml.j2 | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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