github.com/argoproj/argo-cd/v3@v3.2.1/resource_customizations/grafana.integreatly.org/GrafanaDatasource/health.lua (about)

     1  
     2  -- if UID not yet created, we are progressing
     3  if obj.status == nil or obj.status.uid == "" then
     4    return {
     5      status = "Progressing",
     6      message = "",
     7    }
     8  end
     9  
    10  -- NoMatchingInstances distinguishes if we are healthy or degraded
    11  if obj.status.NoMatchingInstances then
    12    return {
    13      status = "Degraded",
    14      message = "can't find matching grafana instance",
    15    }
    16  end
    17  return {
    18    status = "Healthy",
    19    message = "",
    20  }