Skip to content

Commit

Permalink
fix status ref
Browse files Browse the repository at this point in the history
  • Loading branch information
strangiato committed May 30, 2024
1 parent 31fbb84 commit 34f33a3
Showing 1 changed file with 8 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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

Check failure on line 30 in components/operators/openshift-gitops/instance/components/health-check-openshift-ai/patch-inferenceservice-health-check.yaml

View workflow job for this annotation

GitHub Actions / lint-yaml

30:1 [trailing-spaces] trailing spaces
if obj.status.conditions ~= nil then
Expand Down

0 comments on commit 34f33a3

Please sign in to comment.