@@ -118,10 +118,10 @@ Determine argocd argocd repo server port
118
118
119
119
120
120
{ {/*
121
- Determine argocd repoServer url
121
+ Determine argocd repoServer url
122
122
*/} }
123
123
{ {- define " codefresh-gitops-runtime.argocd.reposerver.url" -} }
124
- { {- $argoCDValues := (get .Values " argo-cd" ) } }
124
+ { {- $argoCDValues := (get .Values " argo-cd" ) } }
125
125
{ {- if and (index .Values " argo-cd" " enabled" ) } }
126
126
{ {- $serviceName := include " codefresh-gitops-runtime.argocd.reposerver.servicename" . } }
127
127
{ {- $port := include " codefresh-gitops-runtime.argocd.reposerver.serviceport" . } }
@@ -149,8 +149,12 @@ Determine argocd servicename. Must be called with chart root context
149
149
Determine rollouts name
150
150
*/} }
151
151
{ {- define " codefresh-gitops-runtime.argo-rollouts.name" -} }
152
- { {/* For now use template from rollouts chart until better approach */} }
153
- { {- template " argo-rollouts.fullname" (dict " Values" (get .Values " argo-rollouts" )) } }
152
+ { {- if and (index .Values " argo-rollouts" " enabled" ) } }
153
+ { {/* For now use template from rollouts chart until better approach */} }
154
+ { {- template " argo-rollouts.fullname" (dict " Values" (get .Values " argo-rollouts" )) } }
155
+ { {- else } }
156
+ { {- printf " argo-rollouts" } }
157
+ { {- end } }
154
158
{ {- end } }
155
159
156
160
@@ -200,7 +204,7 @@ Determine argocd server url. Must be called with chart root context
200
204
{ {- $port := (required " ArgoCD is not enabled and .Values.global.external-argo-cd.server.port is not port" $argoCDSrv .port) | toString } }
201
205
{ {- $rootpath := (index .Values " global" " external-argo-cd" " server" " rootpath" ) } }
202
206
{ {- if and (eq $port " 80" ) } }
203
- { {- printf " %s://%s%s" $protocol $svc $rootpath } }
207
+ { {- printf " %s://%s%s" $protocol $svc $rootpath } }
204
208
{ {- else } }
205
209
{ {- printf " %s://%s:%s%s" $protocol $svc $port $rootpath } }
206
210
{ {- end } }
@@ -213,7 +217,7 @@ Determine argocd server url. Must be called with chart root context
213
217
Determine argocd server url witout the protocol. Must be called with chart root context
214
218
*/} }
215
219
{ {- define " codefresh-gitops-runtime.argocd.server.no-protocol-url" -} }
216
- { {- $argoCDValues := (get .Values " argo-cd" ) } }
220
+ { {- $argoCDValues := (get .Values " argo-cd" ) } }
217
221
{ {- if and (index .Values " argo-cd" " enabled" ) } }
218
222
{ {- $serverName := include " codefresh-gitops-runtime.argocd.server.servicename" . } }
219
223
{ {- $port := include " codefresh-gitops-runtime.argocd.server.serviceport" . } }
@@ -231,7 +235,7 @@ Determine argocd server url witout the protocol. Must be called with chart root
231
235
{ {- end} }
232
236
233
237
{ {/*
234
- Determine argocd server password.
238
+ Determine argocd server password.
235
239
*/} }
236
240
{ {- define " codefresh-gitops-runtime.argocd.server.password" } }
237
241
{ {- if and (index .Values " argo-cd" " enabled" ) } }
@@ -265,7 +269,7 @@ valueFrom:
265
269
266
270
267
271
{ {/*
268
- Determine argocd token password.
272
+ Determine argocd token password.
269
273
*/} }
270
274
{ {- define " codefresh-gitops-runtime.argocd.server.token" } }
271
275
{ {- if and (eq (index .Values " global" " external-argo-cd" " auth" " type" ) " token" ) (index .Values " global" " external-argo-cd" " auth" " tokenSecretKeyRef" " name" ) (index .Values " global" " external-argo-cd" " auth" " tokenSecretKeyRef" " key" )} }
@@ -289,7 +293,7 @@ valueFrom:
289
293
{ {- end } }
290
294
291
295
{ {/*
292
- Determine argocd server password.
296
+ Determine argocd server password.
293
297
*/} }
294
298
{ {- define " codefresh-gitops-runtime.argocd.server.username-env-var" } }
295
299
{ {- if and (index .Values " argo-cd" " enabled" ) } }
@@ -310,7 +314,7 @@ valueFrom:
310
314
{ {- end } }
311
315
312
316
{ {/*
313
- Determine argocd server password.
317
+ Determine argocd server password.
314
318
*/} }
315
319
{ {- define " codefresh-gitops-runtime.argocd.server.username-cm" } }
316
320
{ {- if and (index .Values " argo-cd" " enabled" ) } }
@@ -323,10 +327,10 @@ Determine argocd server password.
323
327
{ {- end } }
324
328
325
329
{ {/*
326
- Determine argocd redis url
330
+ Determine argocd redis url
327
331
*/} }
328
332
{ {- define " codefresh-gitops-runtime.argocd.redis.url" -} }
329
- { {- $argoCDValues := (get .Values " argo-cd" ) } }
333
+ { {- $argoCDValues := (get .Values " argo-cd" ) } }
330
334
{ {- if and (index .Values " argo-cd" " enabled" ) } }
331
335
{ {- $serviceName := include " codefresh-gitops-runtime.argocd.redis.servicename" . } }
332
336
{ {- $port := include " codefresh-gitops-runtime.argocd.redis.serviceport" . } }
@@ -458,7 +462,7 @@ Output comma separated list of installed runtime components
458
462
{ {- end } }
459
463
{ {- if not (index .Values " argo-cd" " enabled" ) } }
460
464
{ {- $eventReporter := dict " name" " event-reporter" " version" (get .Subcharts " cf-argocd-extras" ).Chart.AppVersion } }
461
- { {- $comptList = append $comptList $eventReporter } }
465
+ { {- $comptList = append $comptList $eventReporter } }
462
466
{ {- end } }
463
467
{ {- $comptList | toYaml } }
464
468
{ {- end } }
0 commit comments