Skip to content

Commit

Permalink
Merge pull request #11 from kubefirst/fix-argocd-resource-customizations
Browse files Browse the repository at this point in the history
fix: add resource customizations to manifests
  • Loading branch information
echoboomer authored Apr 4, 2023
2 parents 560a848 + 43c80fa commit edb35c5
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions argocd/cloud/argocd-cm.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
apiVersion: v1
kind: ConfigMap
metadata:
name: argocd-cm
data:
application.resourceTrackingMethod: annotation
admin.enabled: 'true'
statusbadge.enabled: 'true'
users.anonymous.enabled: 'false'
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

0 comments on commit edb35c5

Please sign in to comment.