feat(bootstrap): add Applications custom health check

This commit is contained in:
Khue Doan 2021-09-24 20:08:45 +07:00
parent 74beb3f4d2
commit 4b16c1b120
2 changed files with 21 additions and 0 deletions

View File

@ -0,0 +1,20 @@
apiVersion: v1
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
end
return hs

View File

@ -9,5 +9,6 @@ resources:
patches:
- path: argocd-server-deployment-patch.yaml
- path: argocd-cm-patch.yaml
namespace: argocd