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