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
248
-
actions["pause"] = {["disabled"] = fullyPromoted or obj.spec.paused == true}
249
-
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)}
250
-
return actions
251
-
definitions:
252
-
- name: pause
253
-
action.lua: |
254
-
obj.spec.paused = true
255
-
return obj
256
-
- name: skip-current-step
257
-
action.lua: |
258
-
if obj.status ~= nil then
259
-
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
260
-
if obj.status.pauseConditions ~= nil and table.getn(obj.status.pauseConditions) > 0 then
0 commit comments