argo-cd/resource_customizations/apps/Deployment/actions/discovery.lua

11 lines
219 B
Lua
Raw Normal View History

actions = {}
actions["restart"] = {}
local paused = false
if obj.spec.paused ~= nil then
paused = obj.spec.paused
actions["pause"] = {paused}
end
actions["resume"] = {["disabled"] = not(paused)}
return actions