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