Created
May 21, 2024 13:20
-
-
Save christianh814/ae61045e2a3151101940675a05b3b783 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
apiVersion: v1 | |
kind: ConfigMap | |
metadata: | |
name: argocd-cm | |
namespace: argocd | |
annotations: | |
argocd.argoproj.io/sync-options: ServerSideApply=true | |
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 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment