Skip to content

Commit 3dedb89

Browse files
committed
Update image mapping in GetImagesFromApplication function
1 parent 9fa1bed commit 3dedb89

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
@@ -490,11 +490,11 @@ func GetImagesFromApplication(app *v1alpha1.Application) image.ContainerImageLis
490490
appImgs := make(map[string]*image.ContainerImage, len(app.Status.Summary.Images))
491491
for _, imageStr := range app.Status.Summary.Images {
492492
img := image.NewFromIdentifier(imageStr)
493-
appImgs[img.GetFullNameWithoutTag()] = img
493+
appImgs[img.ImageName] = img
494494
}
495495

496496
for _, img := range *imagesFromAnnotations {
497-
if appImg, ok := appImgs[img.GetFullNameWithoutTag()]; ok {
497+
if appImg, ok := appImgs[img.ImageName]; ok {
498498
i := *appImg
499499
i.ImageAlias = img.ImageAlias
500500
images = append(images, &i)

0 commit comments

Comments
 (0)