github.com/argoproj/argo-cd/v3@v3.2.1/resource_customizations/numaflow.numaproj.io/InterStepBufferService/actions/discovery.lua (about) 1 local actions = {} 2 actions["force-promote"] = { 3 ["disabled"] = true, 4 ["iconClass"] = "fa-solid fa-fw fa-forward" 5 } 6 7 -- force-promote 8 local forcePromote = false 9 if (obj.metadata.labels ~= nil and obj.metadata.labels["numaplane.numaproj.io/upgrade-state"] == "in-progress") then 10 forcePromote = true 11 end 12 if (obj.metadata.labels ~= nil and obj.metadata.labels["numaplane.numaproj.io/force-promote"] == "true") then 13 forcePromote = false 14 end 15 if forcePromote then 16 actions["force-promote"]["disabled"] = false 17 else 18 actions["force-promote"]["disabled"] = true 19 end 20 21 return actions