data:
...
resource.customizations.health.networking.k8s.io_Ingress: |
hs = {}
if obj.metadata.annotations ~= nil then
for k,v in pairs(obj.metadata.annotations) do
if k == "argocd-ignore-health-check" then
hs.status = "Healthy"
hs.message = "Ingress ignore health check"
return hs
end
end
end
if obj.status ~= nil then
if obj.status.loadBalancer ~= nil then
if obj.status.loadBalancer.ingress ~= nil then
hs.status = "Healthy"
hs.message = "Ingress healthy"
return hs
end
end
end
hs.status = "Progressing"
hs.message = "Waiting for ingerss"
return hs
resource.customizations.useOpenLibs.networking.k8s.io_Ingress: "true"