You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
local fullyPromoted = obj.status.currentPodHash == obj.status.stableRS
287
-
actions["pause"] = {["disabled"] = fullyPromoted or obj.spec.paused == true}
288
-
actions["skip-current-step"] = {["disabled"] = obj.spec.strategy.canary == nil or obj.spec.strategy.canary.steps == nil or obj.status.currentStepIndex == table.getn(obj.spec.strategy.canary.steps)}
289
-
return actions
290
-
definitions:
291
-
- name: pause
292
-
action.lua: |
293
-
obj.spec.paused = true
294
-
return obj
295
-
- name: skip-current-step
296
-
action.lua: |
297
-
if obj.status ~= nil then
298
-
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
299
-
if obj.status.pauseConditions ~= nil and table.getn(obj.status.pauseConditions) > 0 then
0 commit comments