github.com/argoproj/argo-cd@v1.8.7/resource_customizations/install.istio.io/IstioOperator/health.lua (about)

     1  health_status = {}
     2  if obj.status ~= nil then
     3    if obj.status.status ~= nil then
     4      if obj.status.status == 0 or obj.status.status == "NONE" then
     5        health_status.status = "Unknown"
     6        health_status.message = "Component is not present."
     7        return health_status
     8      end
     9      if obj.status.status == 1 or obj.status.status == "UPDATING" then
    10        health_status.status = "Progressing"
    11        health_status.message = "Component is being updated to a different version."
    12        return health_status
    13      end
    14      if obj.status.status == 2 or obj.status.status == "RECONCILING" then
    15        health_status.status = "Progressing"
    16        health_status.message = "Controller has started but not yet completed reconciliation loop for the component."
    17        return health_status
    18      end
    19      if obj.status.status == 3 or obj.status.status == "HEALTHY" then
    20        health_status.status = "Healthy"
    21        health_status.message = "Component is healthy."
    22        return health_status
    23      end
    24      if obj.status.status == 4 or obj.status.status == "ERROR" then
    25        health_status.status = "Degraded"
    26        health_status.message = "Component is in an error state."
    27        return health_status
    28      end
    29    end
    30  end
    31  health_status.status = "Progressing"
    32  health_status.message = "Waiting for Istio Control Plane"
    33  return health_status