github.com/argoproj/argo-cd/v3@v3.2.1/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  
    11  actions["scale"] = {
    12      ["params"] = {
    13          {
    14              ["name"] = "replicas"
    15          }
    16      },
    17  }
    18  return actions