@@ -21,12 +21,12 @@ generate gitaly config
21
21
{ {- $_ := set $config " scheme" " tcp" -} }
22
22
{ {- else -} }
23
23
{ {/* use external gitaly */} }
24
- { {- $_ := set $config " host" $global .Values.global.gitaly.host -} }
25
- { {- $_ := set $config " port" $global .Values.global.gitaly.port -} }
26
- { {- $_ := set $config " storage" ($global .Values.global.gitaly.storage | default " default" ) -} }
27
- { {- $_ := set $config " token" $global .Values.global.gitaly.token -} }
28
- { {- $_ := set $config " isCluster" ($global .Values.global.gitaly.isCluster | default false ) -} }
29
- { {- $_ := set $config " scheme" ($global .Values.global.gitaly.scheme | default " tcp" ) -} }
24
+ { {- $_ := set $config " host" $global .Values.global.gitaly.external. host -} }
25
+ { {- $_ := set $config " port" $global .Values.global.gitaly.external. port -} }
26
+ { {- $_ := set $config " storage" ($global .Values.global.gitaly.external. storage | default " default" ) -} }
27
+ { {- $_ := set $config " token" $global .Values.global.gitaly.external. token -} }
28
+ { {- $_ := set $config " isCluster" ($global .Values.global.gitaly.external. isCluster | default false ) -} }
29
+ { {- $_ := set $config " scheme" ($global .Values.global.gitaly.external. scheme | default " tcp" ) -} }
30
30
{ {- end -} }
31
31
32
32
{ {/* ensure port is string */} }
@@ -42,9 +42,5 @@ generate gitaly grpc endpoint
42
42
{ {- $service := .service -} }
43
43
{ {- $global := .global -} }
44
44
{ {- $config := include " csghub.gitaly.config" . | fromYaml -} }
45
- { {- if $config .tls -} }
46
- { {- printf " tls://%s:%s" $config .host $config .port -} }
47
- { {- else -} }
48
- { {- printf " tcp://%s:%s" $config .host $config .port -} }
49
- { {- end -} }
45
+ { {- printf " %s://%s:%s" $config .scheme $config .host $config .port -} }
50
46
{ {- end } }
0 commit comments