From 172ea413e0b1f53b6b3741fcb225a72b104b6334 Mon Sep 17 00:00:00 2001 From: Peter Rifel Date: Mon, 16 Dec 2024 23:05:31 -0600 Subject: [PATCH] Normalize the hardcoded images used for warmpool pre-pulling --- pkg/nodemodel/nodeupconfigbuilder.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pkg/nodemodel/nodeupconfigbuilder.go b/pkg/nodemodel/nodeupconfigbuilder.go index 5982a3615c490..13275c2206407 100644 --- a/pkg/nodemodel/nodeupconfigbuilder.go +++ b/pkg/nodemodel/nodeupconfigbuilder.go @@ -509,7 +509,8 @@ func (n *nodeUpConfigBuilder) buildWarmPoolImages(ig *kops.InstanceGroup) []stri if assetBuilder != nil { for _, image := range assetBuilder.ImageAssets { for _, prefix := range desiredImagePrefixes { - if strings.HasPrefix(image.DownloadLocation, prefix) { + remappedPrefix := assets.NormalizeImage(assetBuilder, prefix) + if strings.HasPrefix(image.DownloadLocation, remappedPrefix) { images[image.DownloadLocation] = true } }