github.com/argoproj/argo-cd/v2@v2.10.9/resource_customizations/snapshot.storage.k8s.io/VolumeSnapshot/health.lua (about)

     1  local hs = {}
     2  
     3  if obj.status ~= nil and obj.status.readyToUse then
     4    hs.status = "Healthy"
     5    hs.message = "Ready to use"
     6    return hs
     7  end
     8  
     9  if obj.status ~= nil and obj.status.error ~= nil then
    10    hs.status = "Degraded"
    11    hs.message = obj.status.error.message
    12    return hs
    13  end
    14  
    15  hs.status = "Progressing"
    16  hs.message = "Waiting for status"
    17  
    18  return hs