github.com/argoproj/argo-cd/v2@v2.10.9/resource_customizations/apps/Deployment/actions/discovery.lua (about)

     1  local actions = {}
     2  actions["restart"] = {}
     3  
     4  local paused = false
     5  if obj.spec.paused ~= nil then
     6      paused = obj.spec.paused
     7      actions["pause"] = {paused}
     8  end
     9  actions["resume"] = {["disabled"] = not(paused)}
    10  return actions