github.com/argoproj/argo-cd/v3@v3.2.1/resource_customizations/astra.netapp.io/ExecHook/health.lua (about)

     1  hs = { status = "Progressing", message = "No status available" }
     2  if obj.spec ~= nil then
     3    if obj.spec.enabled ~= nil then
     4      if obj.spec.enabled == true then
     5        hs.status = "Healthy"
     6        hs.message = obj.kind .. " enabled"
     7      elseif obj.spec.enabled == false then
     8        hs.status = "Suspended"
     9        hs.message = obj.kind .. " disabled"
    10      end
    11    end
    12  end
    13  return hs