github.com/argoproj/argo-cd/v2@v2.10.9/resource_customizations/flink.apache.org/FlinkDeployment/health.lua (about)

     1  local health_status = {}
     2  
     3  if obj.status ~= nil and obj.status.reconciliationStatus ~= nil then
     4    if obj.status.reconciliationStatus.success or obj.status.reconciliationStatus.state == "DEPLOYED" then
     5      health_status.status = "Healthy"
     6      return health_status
     7    end 
     8  
     9    if obj.status.jobManagerDeploymentStatus == "DEPLOYED_NOT_READY" or obj.status.jobManagerDeploymentStatus == "DEPLOYING" then
    10      health_status.status = "Progressing"
    11      health_status.message = "Waiting for deploying"
    12      return health_status
    13    end
    14  
    15    if obj.status.jobManagerDeploymentStatus == "ERROR" then
    16      health_status.status = "Degraded"
    17      health_status.message = obj.status.reconciliationStatus.error
    18      return health_status
    19    end 
    20  end
    21  
    22  health_status.status = "Progressing"
    23  health_status.message = "Waiting for Flink operator"
    24  return health_status