fix(argocd): update custom health check for ArgoCD applications

This commit is contained in:
Khue Doan 2021-10-04 00:40:05 +07:00
parent 1a6f40ff5a
commit fdfd5fb2c9

View File

@ -3,18 +3,16 @@ kind: ConfigMap
metadata:
name: argocd-cm
data:
resource.customizations: |
argoproj.io/Application:
health.lua: |
hs = {}
hs.status = "Progressing"
hs.message = ""
if obj.status ~= nil then
if obj.status.health ~= nil then
hs.status = obj.status.health.status
if obj.status.health.message ~= nil then
hs.message = obj.status.health.message
end
end
resource.customizations.health.argoproj.io_Application: |
hs = {}
hs.status = "Progressing"
hs.message = ""
if obj.status ~= nil then
if obj.status.health ~= nil then
hs.status = obj.status.health.status
if obj.status.health.message ~= nil then
hs.message = obj.status.health.message
end
return hs
end
end
return hs