Skip to content

Commit

Permalink
fix ArgoCD resourceHealthChecks
Browse files Browse the repository at this point in the history
  • Loading branch information
dseveria committed Jan 4, 2024
1 parent ed7e8b9 commit 7ca54ed
Show file tree
Hide file tree
Showing 5 changed files with 28 additions and 20 deletions.
40 changes: 20 additions & 20 deletions gitops/cluster-config/templates/openshift-gitops-argocd.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -60,23 +60,23 @@ spec:
hs.status = "Progressing"
hs.message = "Waiting for InstallPlan to complete"
return hs
- kind: PersistentVolumeClaim
check: |
hs = {}
if obj.status ~= nil then
if obj.status.phase ~= nil then
if obj.status.phase == "Pending" then
hs.status = "Healthy"
hs.message = obj.status.phase
return hs
end
if obj.status.phase == "Bound" then
hs.status = "Healthy"
hs.message = obj.status.phase
return hs
end
end
end
hs.status = "Progressing"
hs.message = "Waiting for certificate"
return hs
# - kind: PersistentVolumeClaim
# check: |
# hs = {}
# if obj.status ~= nil then
# if obj.status.phase ~= nil then
# if obj.status.phase == "Pending" then
# hs.status = "Healthy"
# hs.message = obj.status.phase
# return hs
# end
# if obj.status.phase == "Bound" then
# hs.status = "Healthy"
# hs.message = obj.status.phase
# return hs
# end
# end
# end
# hs.status = "Progressing"
# hs.message = "Waiting for certificate"
# return hs
Original file line number Diff line number Diff line change
Expand Up @@ -629,6 +629,8 @@ kind: PersistentVolumeClaim
metadata:
namespace: {{ .Values.namespace }}
name: workspace-pvc-shop-cd-new-version
annotations:
argocd.argoproj.io/sync-wave: "1000"
spec:
accessModes:
- ReadWriteOnce
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,8 @@ kind: PersistentVolumeClaim
metadata:
namespace: {{ .Values.namespace }}
name: workspace-pvc-shop-cd-e2e-tests
annotations:
argocd.argoproj.io/sync-wave: "1000"
spec:
accessModes:
- ReadWriteOnce
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -624,6 +624,8 @@ kind: PersistentVolumeClaim
metadata:
namespace: {{ $user }}-continuous-deployment
name: workspace-pvc-shop-cd-new-version
annotations:
argocd.argoproj.io/sync-wave: "1000"
spec:
accessModes:
- ReadWriteOnce
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,8 @@ kind: PersistentVolumeClaim
metadata:
namespace: {{ $user }}-continuous-deployment
name: workspace-pvc-shop-cd-e2e-tests
annotations:
argocd.argoproj.io/sync-wave: "1000"
spec:
accessModes:
- ReadWriteOnce
Expand Down

0 comments on commit 7ca54ed

Please sign in to comment.