mirror of
https://github.com/khuedoan/homelab.git
synced 2025-01-05 13:08:52 +07:00
feat(bootstrap): add Applications custom health check
This commit is contained in:
parent
74beb3f4d2
commit
4b16c1b120
20
bootstrap/argocd/argocd-cm-patch.yaml
Normal file
20
bootstrap/argocd/argocd-cm-patch.yaml
Normal 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
|
@ -9,5 +9,6 @@ resources:
|
||||
|
||||
patches:
|
||||
- path: argocd-server-deployment-patch.yaml
|
||||
- path: argocd-cm-patch.yaml
|
||||
|
||||
namespace: argocd
|
||||
|
Loading…
Reference in New Issue
Block a user