Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: bug with skip-current-step #266

Merged
merged 1 commit into from
Dec 1, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading