github.com/argoproj/argo-cd/v2@v2.10.9/resource_customizations/bitnami.com/SealedSecret/health.lua (about)

     1  local health_status={}
     2  if obj.status ~= nil then
     3      if obj.status.conditions ~= nil then
     4          for i, condition in ipairs(obj.status.conditions) do
     5              if condition.type == "Synced" and condition.status == "False" then
     6                  health_status.status = "Degraded"
     7                  health_status.message = condition.message
     8                  return health_status
     9              end
    10              if condition.type == "Synced" and condition.status == "True" then
    11                  health_status.status = "Healthy"
    12                  health_status.message = condition.message
    13                  return health_status
    14              end
    15          end
    16      end
    17  end
    18  health_status.status = "Progressing"
    19  health_status.message = "Waiting for Sealed Secret to be decrypted"
    20  return health_status