diff --git a/components/operators/openshift-gitops/instance/components/health-check-openshift-ai/patch-inferenceservice-health-check.yaml b/components/operators/openshift-gitops/instance/components/health-check-openshift-ai/patch-inferenceservice-health-check.yaml index d9a5a2b5..72692d48 100644 --- a/components/operators/openshift-gitops/instance/components/health-check-openshift-ai/patch-inferenceservice-health-check.yaml +++ b/components/operators/openshift-gitops/instance/components/health-check-openshift-ai/patch-inferenceservice-health-check.yaml @@ -17,15 +17,15 @@ local status_unknown = 0 msg = "" - if obj.modelStatus ~= nil then - -- if obj.modelStatus.transitionStatus == "UpToDate" then - if obj.modelStatus.transitionStatus == "InProgress" then - progressing = true - elseif obj.modelStatus.transitionStatus == "BlockedByFailedLoad" or obj.modelStatus.transitionStatus == "InvalidSpec" then - degraded = true + if obj.status.modelStatus ~= nil then + if obj.status.modelStatus.transitionStatus == "UpToDate" then + if obj.status.modelStatus.transitionStatus == "InProgress" then + progressing = true + else + degraded = true + end + msg = msg .. "0: transitionStatus | " .. obj.status.modelStatus.transitionStatus .. "\n" end - -- end - msg = msg .. "0: transitionStatus | " .. obj.modelStatus.transitionStatus .. "\n" end if obj.status.conditions ~= nil then