mirror of
https://github.com/argoproj/argo-cd
synced 2026-05-24 09:50:08 +00:00
* feat: Add custom resource actions for flux resources Signed-off-by: Adrian Berger <adrian.berger@bedag.ch> * chore: Add upgrade docs, change annotation text Signed-off-by: Adrian Berger <adrian.berger@bedag.ch> --------- Signed-off-by: Adrian Berger <adrian.berger@bedag.ch>
18 lines
411 B
Lua
18 lines
411 B
Lua
local actions = {}
|
|
|
|
actions["reconcile"] = {["disabled"] = true}
|
|
actions["suspend"] = {["disabled"] = true}
|
|
actions["resume"] = {["disabled"] = true}
|
|
|
|
local suspend = false
|
|
if obj.spec.suspend ~= nil then
|
|
suspend = obj.spec.suspend
|
|
end
|
|
if suspend then
|
|
actions["resume"]["disabled"] = false
|
|
else
|
|
actions["reconcile"]["disabled"] = false
|
|
actions["suspend"]["disabled"] = false
|
|
end
|
|
|
|
return actions
|