mirror of
https://github.com/argoproj/argo-cd
synced 2026-05-03 22:58:21 +00:00
18 lines
329 B
Lua
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
|