Skip to content

Commit

Permalink
Normalize the hardcoded images used for warmpool pre-pulling
Browse files Browse the repository at this point in the history
  • Loading branch information
rifelpet committed Dec 17, 2024
1 parent 7b02284 commit 172ea41
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pkg/nodemodel/nodeupconfigbuilder.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
}
Expand Down

0 comments on commit 172ea41

Please sign in to comment.