github.com/argoproj/argo-cd/v3@v3.2.1/resource_customizations/external-secrets.io/PushSecret/actions/discovery.lua (about) 1 local actions = {} 2 3 local disable_push = false 4 local time_units = {"ns", "us", "µs", "ms", "s", "m", "h"} 5 local digits = obj.spec.refreshInterval 6 if digits ~= nil then 7 digits = tostring(digits) 8 for _, time_unit in ipairs(time_units) do 9 if digits == "0" or digits == "0" .. time_unit then 10 disable_push = true 11 break 12 end 13 end 14 end 15 16 actions["push"] = {["disabled"] = disable_push} 17 return actions