feat(bootstrap): Add healthcheck before moving forward
This commit is contained in:
@@ -0,0 +1,18 @@
|
|||||||
|
apiVersion: v1
|
||||||
|
kind: ConfigMap
|
||||||
|
metadata:
|
||||||
|
name: argocd-cm
|
||||||
|
data:
|
||||||
|
resource.customizations.health.argoproj.io_Application: |
|
||||||
|
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,3 +9,7 @@ patches:
|
|||||||
kind: Service
|
kind: Service
|
||||||
name: argocd-server
|
name: argocd-server
|
||||||
path: argocd-server-nodeport-patch.yaml
|
path: argocd-server-nodeport-patch.yaml
|
||||||
|
- target:
|
||||||
|
kind: ConfigMap
|
||||||
|
name: argocd-cm
|
||||||
|
path: argocd-cm-application-health-patch.yaml
|
||||||
|
|||||||
Reference in New Issue
Block a user