Skip to content

Commit 20e91af

Browse files
nandajavarmaroboquat
authored andcommitted
[installer] updating the refCache image in image-builder-mk3
1 parent 08dea12 commit 20e91af

File tree

1 file changed

+6
-1
lines changed
  • install/installer/pkg/components/image-builder-mk3

1 file changed

+6
-1
lines changed

install/installer/pkg/components/image-builder-mk3/configmap.go

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,12 +53,17 @@ func configmap(ctx *common.RenderContext) ([]runtime.Object, error) {
5353
WorkspaceImageRepository: fmt.Sprintf("%s/workspace-images", registryName),
5454
}
5555

56+
workspaceImage := ctx.Config.Workspace.WorkspaceImage
57+
if workspaceImage == "" {
58+
workspaceImage = ctx.ImageName(common.ThirdPartyContainerRepo(ctx.Config.Repository, ""), workspace.DefaultWorkspaceImage, workspace.DefaultWorkspaceImageVersion)
59+
}
60+
5661
imgcfg := config.ServiceConfig{
5762
Orchestrator: orchestrator,
5863
RefCache: config.RefCacheConfig{
5964
Interval: util.Duration(time.Hour * 6).String(),
6065
Refs: []string{
61-
ctx.ImageName(common.ThirdPartyContainerRepo(ctx.Config.Repository, ""), workspace.DefaultWorkspaceImage, workspace.DefaultWorkspaceImageVersion),
66+
workspaceImage,
6267
},
6368
},
6469
Service: config.Service{

0 commit comments

Comments
 (0)