Skip to content

Instantly share code, notes, and snippets.

@christianh814
Created May 21, 2024 13:20
Show Gist options
  • Save christianh814/ae61045e2a3151101940675a05b3b783 to your computer and use it in GitHub Desktop.
Save christianh814/ae61045e2a3151101940675a05b3b783 to your computer and use it in GitHub Desktop.
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