Skip to content

Commit

Permalink
Fix bug with skip-current-step (#266)
Browse files Browse the repository at this point in the history
  • Loading branch information
akorzy-pl authored Dec 1, 2023
1 parent a2539e3 commit fd1c1ca
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
if obj.status ~= nil then
if obj.spec.strategy.canary ~= nil and obj.spec.strategy.canary.steps ~= nil and obj.status.currentStepIndex < table.getn(obj.spec.strategy.canary.steps) then
obj.status.pauseConditions = nil
obj.spec.pause = false
if obj.status.pauseConditions ~= nil and table.getn(obj.status.pauseConditions) > 0 then
obj.status.pauseConditions = nil
end
obj.status.currentStepIndex = obj.status.currentStepIndex + 1
obj.status.controllerPause = false
end
end
return obj

0 comments on commit fd1c1ca

Please sign in to comment.