-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathargocd.yaml
More file actions
112 lines (112 loc) · 3.12 KB
/
Copy pathargocd.yaml
File metadata and controls
112 lines (112 loc) · 3.12 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
apiVersion: argoproj.io/v1alpha1
kind: ArgoCD
metadata:
name: argocd
labels:
profile: redhat-canada-gitops
spec:
server:
insecure: true
route:
enabled: true
tls:
termination: edge
insecureEdgeTerminationPolicy: Redirect
dex:
image: quay.io/redhat-cop/dex
version: v2.22.0-openshift
openShiftOAuth: true
applicationInstanceLabelKey: argocd.argoproj.io/instance
resourceCustomizations: |
bitnami.com/SealedSecret:
health.lua: |
hs = {}
if obj.status ~= nil then
if obj.status.conditions ~= nil then
for i, condition in ipairs(obj.status.conditions) do
if condition.type == "Synced" and condition.status == "False" then
hs.status = "Degraded"
hs.message = condition.message
return hs
end
if condition.type == "Synced" and condition.status == "True" then
hs.status = "Healthy"
hs.message = condition.message
return hs
end
end
end
end
hs.status = "Progressing"
hs.message = "Waiting for sync status"
return hs
build.openshift.io/BuildConfig:
ignoreDifferences: |
jsonPointers:
- /status/lastVersion
route.openshift.io/Route:
ignoreDifferences: |
jsonPointers:
- /status/ingress
/ServiceAccount:
ignoreDifferences: |
jsonPointers:
- /imagePullSecrets
PersistentVolumeClaim:
health.lua: |
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
Job:
health.lua: |
hs = {}
if obj.status ~= nil then
if obj.status.active ~= nil then
if obj.status.active == "1" then
hs.status = "Progressing"
hs.message = obj.status.active .. " active job(s)."
return hs
end
end
if obj.status.succeeded ~= nil then
if obj.status.succeeded == 1 then
hs.status = "Healthy"
hs.message = "Job completed successfully."
return hs
end
end
end
hs.status = "Progressing"
hs.message = "Waiting for Job to complete."
return hs
resourceExclusions: |
- apiGroups:
- tekton.dev
kinds:
- PipelineRun
- apiGroups:
- compliance.openshift.io
kinds:
- ComplianceCheckResult
- ComplianceRemediation
rbac:
defaultPolicy: role:readonly
policy: |
g, argocdadmins, role:admin
g, argocdusers, role:readonly
scopes: "[groups]"