Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update Argo CD resource #42

Merged
merged 1 commit into from
Oct 9, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
47 changes: 26 additions & 21 deletions components/argocd/base/openshift-gitops-argocd.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
apiVersion: argoproj.io/v1alpha1
apiVersion: argoproj.io/v1beta1
kind: ArgoCD
metadata:
name: openshift-gitops
Expand Down Expand Up @@ -60,32 +60,37 @@ spec:
cpu: '1'
memory: 2Gi
# yamllint disable rule:line-length
resourceCustomizations: |
bitnami.com/SealedSecret:
health.lua: |
resourceHealthChecks:
- group: bitnami.com
kind: SealedSecret
check: |
hs = {}
hs.status = "Healthy"
hs.message = "Controller doesnt report status"
return hs
route.openshift.io/Route:
ignoreDifferences: |
jsonPointers:
- /spec/host
internal.open-cluster-management.io/ManagedClusterInfo:
health.lua: |
hs = {}
if obj.status ~= nil and obj.status.conditions ~= nil then
for i, condition in ipairs(obj.status.conditions) do
if condition.status == "True" and condition.reason == "ManagedClusterInfoSynced" then
hs.status = "Healthy"
hs.message = "Managed cluster is added to hub cluster"
return hs
end
- group: internal.open-cluster-management.io
kind: ManagedClusterInfo
check: |
hs = {}
if obj.status ~= nil and obj.status.conditions ~= nil then
for i, condition in ipairs(obj.status.conditions) do
if condition.status == "True" and condition.reason == "ManagedClusterInfoSynced" then
hs.status = "Healthy"
hs.message = "Managed cluster is added to hub cluster"
return hs
end
end
hs.status = "Progressing"
hs.message = "Waiting for managed cluster to be deployed."
return hs
end
hs.status = "Progressing"
hs.message = "Waiting for managed cluster to be deployed."
return hs
resourceIgnoreDifferences:
resourceIdentifiers:
- group: route.openshift.io
kind: Route
customization:
jsonPointers:
- /spec/host
# yamllint enable rule:line-length
resourceExclusions: |
- apiGroups:
Expand Down
Loading