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
214
+
actions["pause"] = {["disabled"] = fullyPromoted or obj.spec.paused == true}
215
+
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)}
216
+
return actions
217
+
definitions:
218
+
- name: pause
219
+
action.lua: |
220
+
obj.spec.paused = true
221
+
return obj
222
+
- name: skip-current-step
223
+
action.lua: |
224
+
if obj.status ~= nil then
225
+
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
226
+
if obj.status.pauseConditions ~= nil and table.getn(obj.status.pauseConditions) > 0 then
0 commit comments