Skip to content

Commit 172ea41

Browse files
committed
Normalize the hardcoded images used for warmpool pre-pulling
1 parent 7b02284 commit 172ea41

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

pkg/nodemodel/nodeupconfigbuilder.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -509,7 +509,8 @@ func (n *nodeUpConfigBuilder) buildWarmPoolImages(ig *kops.InstanceGroup) []stri
509509
if assetBuilder != nil {
510510
for _, image := range assetBuilder.ImageAssets {
511511
for _, prefix := range desiredImagePrefixes {
512-
if strings.HasPrefix(image.DownloadLocation, prefix) {
512+
remappedPrefix := assets.NormalizeImage(assetBuilder, prefix)
513+
if strings.HasPrefix(image.DownloadLocation, remappedPrefix) {
513514
images[image.DownloadLocation] = true
514515
}
515516
}

0 commit comments

Comments
 (0)