mirror of
https://github.com/khuedoan/homelab.git
synced 2025-01-09 06:47:01 +07:00
21 lines
509 B
YAML
21 lines
509 B
YAML
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
|