Skip to content

Commit b412955

Browse files
committed
Update image mapping in GetImagesFromApplication function
Signed-off-by: Aleksandr Petrov <burnb83@gmail.com>
1 parent 077148b commit b412955

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pkg/argocd/argocd.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -487,11 +487,11 @@ func GetImagesFromApplication(app *v1alpha1.Application) image.ContainerImageLis
487487
appImgs := make(map[string]*image.ContainerImage, len(app.Status.Summary.Images))
488488
for _, imageStr := range app.Status.Summary.Images {
489489
img := image.NewFromIdentifier(imageStr)
490-
appImgs[img.GetFullNameWithoutTag()] = img
490+
appImgs[img.ImageName] = img
491491
}
492492

493493
for _, img := range *imagesFromAnnotations {
494-
if appImg, ok := appImgs[img.GetFullNameWithoutTag()]; ok {
494+
if appImg, ok := appImgs[img.ImageName]; ok {
495495
i := *appImg
496496
i.ImageAlias = img.ImageAlias
497497
images = append(images, &i)

0 commit comments

Comments
 (0)