Skip to content

Commit b39d0bd

Browse files
committed
add status
1 parent 8f06d4c commit b39d0bd

File tree

1 file changed

+2
-2
lines changed
  • pkg/resourceinterpreter/default/thirdparty/resourcecustomizations/batch.volcano.sh/v1alpha1/Job

1 file changed

+2
-2
lines changed

pkg/resourceinterpreter/default/thirdparty/resourcecustomizations/batch.volcano.sh/v1alpha1/Job/customizations.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ spec:
1919
end
2020
if phase == 'Running' or phase == 'Completed' or phase == "Pending" or
2121
phase == "Aborting" or phase == "Aborted" or phase == "Restarting" or
22-
phase == "Completing" then
22+
phase == "Completing" or phase == "Terminating" or phase == "Terminated" then
2323
return true
2424
end
2525
return false
@@ -136,7 +136,7 @@ spec:
136136
for i = 1, #statusItems do
137137
local s = statusItems[i].status
138138
if s ~= nil then
139-
status.minAvailable = math.max(status.minAvailable, s.minAvailable or 0)
139+
status.minAvailable = status.minAvailable + (s.minAvailable or 0)
140140
status.pending = status.pending + (s.pending or 0)
141141
status.running = status.running + (s.running or 0)
142142
status.succeeded = status.succeeded + (s.succeeded or 0)

0 commit comments

Comments
 (0)