argo-cd/resource_customizations/apps/Deployment/actions/discovery.lua
Michael Crenshaw 6ec53193fd
chore(refactor): remove unused actions parameter fields (#24008)
Signed-off-by: Michael Crenshaw <350466+crenshaw-dev@users.noreply.github.com>
2025-08-01 08:01:49 -07:00

18 lines
329 B
Lua

local 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)}
actions["scale"] = {
["params"] = {
{
["name"] = "replicas"
}
},
}
return actions