Skip to content

Commit 473f194

Browse files
authored
fix: config manager respect global registry (#10075)
1 parent 24a3fb6 commit 473f194

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

pkg/parameters/config_util.go

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -398,14 +398,15 @@ func BuildReloadActionContainer(resourceCtx *render.ResourceCtx, cluster *appsv1
398398
if runningITS := getRunningIts(); runningITS != nil {
399399
for i, c := range runningITS.Spec.Template.Spec.Containers {
400400
if c.Name == container.Name {
401-
runningITS.Spec.Template.Spec.Containers[i].Image = container.Image
401+
// replace the image registry here, other scenarios will be replaced in the component workload transformer
402+
runningITS.Spec.Template.Spec.Containers[i].Image = intctrlutil.ReplaceImageRegistry(container.Image)
402403
break
403404
}
404405
}
405406
for _, tc := range buildParams.ToolsContainers {
406407
for j, ic := range runningITS.Spec.Template.Spec.InitContainers {
407408
if ic.Name == tc.Name {
408-
runningITS.Spec.Template.Spec.InitContainers[j].Image = tc.Image
409+
runningITS.Spec.Template.Spec.InitContainers[j].Image = intctrlutil.ReplaceImageRegistry(tc.Image)
409410
break
410411
}
411412
}

0 commit comments

Comments
 (0)