@@ -168,40 +168,40 @@ postgres://{{ template "harbor.database.username" . }}:{{ template "harbor.datab
168
168
{ {- end } }
169
169
{ {- end -} }
170
170
171
- /*scheme://[redis :password@]host:port[/master_set]*/
171
+ /*scheme://[:password@]host:port[/master_set]*/
172
172
{ {- define " harbor.redis.url" -} }
173
173
{ {- with .Values.redis } }
174
174
{ {- $path := ternary " " (printf " /%s" (include " harbor.redis.masterSet" $)) (not (include " harbor.redis.masterSet" $)) } }
175
- { {- $cred := ternary (printf " redis :%s@" (.external.password | urlquery)) " " (and (eq .type " external" ) (not (not .external.password))) } }
175
+ { {- $cred := ternary (printf " :%s@" (.external.password | urlquery)) " " (and (eq .type " external" ) (not (not .external.password))) } }
176
176
{ {- printf " %s://%s%s%s" (include " harbor.redis.scheme" $) $cred (include " harbor.redis.addr" $) $path -} }
177
177
{ {- end } }
178
178
{ {- end -} }
179
179
180
- /*scheme://[redis :password@]addr/db_index?idle_timeout_seconds=30*/
180
+ /*scheme://[:password@]addr/db_index?idle_timeout_seconds=30*/
181
181
{ {- define " harbor.redis.urlForCore" -} }
182
182
{ {- with .Values.redis } }
183
183
{ {- $index := ternary " 0" .external.coreDatabaseIndex (eq .type " internal" ) } }
184
184
{ {- printf " %s/%s?idle_timeout_seconds=30" (include " harbor.redis.url" $) $index -} }
185
185
{ {- end } }
186
186
{ {- end -} }
187
187
188
- /*scheme://[redis :password@]addr/db_index*/
188
+ /*scheme://[:password@]addr/db_index*/
189
189
{ {- define " harbor.redis.urlForJobservice" -} }
190
190
{ {- with .Values.redis } }
191
191
{ {- $index := ternary " 1" .external.jobserviceDatabaseIndex (eq .type " internal" ) } }
192
192
{ {- printf " %s/%s" (include " harbor.redis.url" $) $index -} }
193
193
{ {- end } }
194
194
{ {- end -} }
195
195
196
- /*scheme://[redis :password@]addr/db_index?idle_timeout_seconds=30*/
196
+ /*scheme://[:password@]addr/db_index?idle_timeout_seconds=30*/
197
197
{ {- define " harbor.redis.urlForRegistry" -} }
198
198
{ {- with .Values.redis } }
199
199
{ {- $index := ternary " 2" .external.registryDatabaseIndex (eq .type " internal" ) } }
200
200
{ {- printf " %s/%s?idle_timeout_seconds=30" (include " harbor.redis.url" $) $index -} }
201
201
{ {- end } }
202
202
{ {- end -} }
203
203
204
- /*scheme://[redis :password@]addr/db_index?idle_timeout_seconds=30*/
204
+ /*scheme://[:password@]addr/db_index?idle_timeout_seconds=30*/
205
205
{ {- define " harbor.redis.urlForTrivy" -} }
206
206
{ {- with .Values.redis } }
207
207
{ {- $index := ternary " 5" .external.trivyAdapterIndex (eq .type " internal" ) } }
0 commit comments