-
Notifications
You must be signed in to change notification settings - Fork 17
/
Copy pathargocd.yaml
236 lines (236 loc) · 5.69 KB
/
argocd.yaml
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
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
apiVersion: argoproj.io/v1beta1
kind: ArgoCD
metadata:
name: openshift-gitops
namespace: openshift-gitops
spec:
server:
autoscale:
enabled: false
grpc:
ingress:
enabled: false
ingress:
enabled: false
resources:
# limits:
# cpu: 500m
# memory: 256Mi
requests:
cpu: 125m
memory: 128Mi
route:
enabled: true
tls:
insecureEdgeTerminationPolicy: Redirect
termination: reencrypt
service:
type: ''
grafana:
enabled: false
ingress:
enabled: false
route:
enabled: false
prometheus:
enabled: false
ingress:
enabled: false
route:
enabled: false
initialSSHKnownHosts: {}
applicationSet:
resources:
# limits:
# cpu: '2'
# memory: 1Gi
requests:
cpu: 500m
memory: 512Mi
rbac:
defaultPolicy: 'role:admin'
policy: 'g, system:cluster-admins, role:admin'
scopes: '[groups]'
repo:
resources:
# limits:
# cpu: '1'
# memory: 1Gi
requests:
cpu: 250m
memory: 256Mi
kustomizeBuildOptions: '--enable-helm --load-restrictor LoadRestrictionsNone'
resourceExclusions: |
- apiGroups:
- tekton.dev
- tekton.dev
clusters:
- '*'
kinds:
- TaskRun
- PipelineRun
sso:
provider: dex
dex:
openShiftOAuth: true
resources:
# limits:
# cpu: 500m
# memory: 256Mi
requests:
cpu: 250m
memory: 128Mi
ha:
enabled: false
tls:
ca: {}
redis:
resources:
# limits:
# cpu: 500m
# memory: 256Mi
requests:
cpu: 250m
memory: 128Mi
controller:
processors: {}
resources:
limits:
cpu: '2'
memory: 4Gi
requests:
cpu: 250m
memory: 1Gi
sharding: {}
resourceIgnoreDifferences:
resourceIdentifiers:
- group: quay.redhat.com
kind: QuayRegistry
customization:
jsonPointers:
- /spec/components
- group: route.openshift.io
kind: Route
customization:
jsonPointers:
- /spec/host
- group: apps
kind: Deployment
customization:
jsonPointers:
- /spec/template/spec/containers/0/image
- group: apps.openshift.io
kind: DeploymentConfig
customization:
jsonPointers:
- /spec/template/spec/containers/0/image
resourceHealthChecks:
- group: argoproj.io
kind: Application
check: |
hs = {}
hs.status = "Progressing"
hs.message = ""
if obj.status ~= nil then
if obj.status.health ~= nil then
hs.status = obj.status.health.status
hs.message = obj.status.health.message
end
end
return hs
- group: image.openshift.io
kind: ImageStream
check: |
hs = {}
hs.status = "Progressing"
hs.message = ""
if obj.status ~= nil then
if obj.status.tags ~= nil then
numTags = 0
for _ , item in pairs(obj.status.tags) do
numTags = numTags + 1
numItems = 0
if item.tags ~= nil then
for _ , item in pairs(item.tags) do
numItems = numItems + 1
end
if numItems == 0 then
return hs
end
end
end
if numTags > 0 then
hs.status = "Healthy"
hs.message = "ImageStream has tags resolved"
return hs
end
end
end
return hs
- group: operators.coreos.com
kind: Subscription
check: |
hs = {}
if obj.status ~= nil then
if obj.status.currentCSV ~= nil and (obj.status.state == "AtLatestKnown" or obj.status.state == "UpgradeAvailable" or obj.status.state == "UpgradePending") then
hs.status = "Healthy"
hs.message = "Subscription installed"
return hs
end
end
hs.status = "Progressing"
hs.message = "Waiting for Subscription to complete."
return hs
- group: ""
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 PVC"
return hs
- group: operators.coreos.com
kind: InstallPlan
check: |
hs = {}
if obj.status ~= nil then
if obj.status.phase ~= nil then
if obj.status.phase == "Complete" then
hs.status = "Healthy"
hs.message = obj.status.phase
return hs
end
end
end
hs.status = "Progressing"
hs.message = "Waiting for InstallPlan to complete"
return hs
- group: build.openshift.io
kind: Build
check: |
hs = {}
if obj.status ~= nil then
if obj.status.phase ~= nil then
if obj.status.phase == "Complete" then
hs.status = "Healthy"
hs.message = obj.status.phase
return hs
end
end
end
hs.status = "Progressing"
hs.message = "Waiting for Build to complete"
return hs