@@ -77,24 +77,15 @@ Create the name of the service account to use
7777Determine argocd server service name. Must be called with chart root context
7878*/} }
7979{ {- define " codefresh-gitops-runtime.argocd.server.servicename" -} }
80- { {/* For now use template from ArgoCD chart until better approach */} }
81- { {- template " argo-cd.server.fullname" (dict " Values" (get .Values " argo-cd" ) " Release" .Release ) } }
82- { {- end } }
83-
84- { {/*
85- Determine argocd redis service name. Must be called with chart root context
86- */} }
87- { {- define " codefresh-gitops-runtime.argocd.redis.servicename" -} }
88- { {/* For now use template from ArgoCD chart until better approach */} }
89- { {- template " argo-cd.redis.fullname" (dict " Values" (get .Values " argo-cd" ) " Release" .Release ) } }
80+ { {- printf " %s-%s" (index .Values " argo-cd" " fullnameOverride" ) (index .Values " argo-cd" " server" " name" ) } }
9081{ {- end } }
9182
9283{ {/*
9384Determine argocd repo server service name. Must be called with chart root context
9485*/} }
9586{ {- define " codefresh-gitops-runtime.argocd.reposerver.servicename" -} }
9687 { {- if (index .Subcharts " argo-cd" ) } }
97- { {- template " argo-cd.repoServer.fullname " (dict " Values" (get .Values " argo-cd" ) " Release " .Release ) } }
88+ { {- printf " %s-%s " (index . Values " argo-cd " " fullnameOverride " ) (index .Values " argo-cd" " repoServer " " name " ) } }
9889 { {- else } }
9990 { {- $repoServer := index .Values " global" " integrations" " argo-cd" " repoServer" } }
10091 { {- $svc := required " .Values.global.integrations.argo-cd.repoServer.svc is not set" $repoServer .svc } }
@@ -132,15 +123,6 @@ Determine argocd repoServer url
132123 { {- end } }
133124{ {- end} }
134125
135-
136- { {/*
137- Determine argocd servicename. Must be called with chart root context
138- */} }
139- { {- define " codefresh-gitops-runtime.argocd.appcontroller.serviceAccountName" -} }
140- { {/* For now use template from ArgoCD chart until better approach */} }
141- { {- template " argo-cd.controllerServiceAccountName" (dict " Values" (get .Values " argo-cd" ) " Release" .Release ) } }
142- { {- end } }
143-
144126{ {/*
145127Determine rollouts name
146128*/} }
@@ -153,7 +135,6 @@ Determine rollouts name
153135 { {- end } }
154136{ {- end } }
155137
156-
157138{ {/*
158139Determine argocd server service port. Must be called with chart root context
159140*/} }
@@ -219,8 +200,8 @@ Determine argocd server url witout the protocol. Must be called with chart root
219200 { {- printf " %s:%s%s" $serverName $port $path } }
220201 { {- else } }
221202 { {- $argoCDSrv := (index .Values " global" " integrations" " argo-cd" " server" ) } }
222- { {- $svc := required " ArgoCD is not enabled and .Values.global.integrations.argo-cd.server.svc is not set" $argoCDSrv .svc } }
223- { {- $port := required " ArgoCD is not enabled and .Values.global.integrations.argo-cd.server.port is not set" $argoCDSrv .port } }
203+ { {- $svc := required " .Values.global.integrations.argo-cd.server.svc is not set" $argoCDSrv .svc } }
204+ { {- $port := required " .Values.global.integrations.argo-cd.server.port is not set" $argoCDSrv .port } }
224205 { {- $rootpath := (index .Values " global" " integrations" " argo-cd" " server" " rootpath" ) } }
225206 { {- printf " %s:%v%s" $svc $port $rootpath } }
226207 { {- end } }
0 commit comments