Skip to content

Commit c247324

Browse files
Fixing Tempo Registry Colcase Order
Problem: Component-specific registry overrides weren't working despite being documented as overriding global registry. Root Cause: Template helper function had incorrect priority order in coalesce: `{{- $registry := coalesce .global.registry .component.registry .tempo.registry -}}` Fix: Changed priority to put component registry first: `{{- $registry := coalesce .component.registry .tempo.registry .global.registry -}}`` Result: - Component registry now properly overrides global registry as documented - Fully backwards compatible - when component registry is null, falls back to global - Enables clean configuration like memcached.image.registry: public.ecr.aws Signed-off-by: portswigger-amason <[email protected]>
1 parent 9a2a0d3 commit c247324

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

charts/tempo-distributed/templates/_helpers.tpl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ If release name contains chart name it will be used as a full name.
2828
Docker image selector for Tempo. Hierachy based on global, component, and tempo values.
2929
*/}}
3030
{{- define "tempo.tempoImage" -}}
31-
{{- $registry := coalesce .global.registry .component.registry .tempo.registry -}}
31+
{{- $registry := coalesce .component.registry .tempo.registry .global.registry -}}
3232
{{- $repository := coalesce .component.repository .tempo.repository -}}
3333
{{- $tag := coalesce .component.tag .tempo.tag .defaultVersion | toString -}}
3434
{{- printf "%s/%s:%s" $registry $repository $tag -}}

0 commit comments

Comments
 (0)