From 3dedb892cb106e96ed04aff060099f8686e1c4d1 Mon Sep 17 00:00:00 2001 From: Aleksandr Petrov Date: Thu, 18 Jan 2024 19:46:28 +0700 Subject: [PATCH] Update image mapping in GetImagesFromApplication function --- pkg/argocd/argocd.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkg/argocd/argocd.go b/pkg/argocd/argocd.go index b22711e5..f8e93abc 100644 --- a/pkg/argocd/argocd.go +++ b/pkg/argocd/argocd.go @@ -490,11 +490,11 @@ func GetImagesFromApplication(app *v1alpha1.Application) image.ContainerImageLis appImgs := make(map[string]*image.ContainerImage, len(app.Status.Summary.Images)) for _, imageStr := range app.Status.Summary.Images { img := image.NewFromIdentifier(imageStr) - appImgs[img.GetFullNameWithoutTag()] = img + appImgs[img.ImageName] = img } for _, img := range *imagesFromAnnotations { - if appImg, ok := appImgs[img.GetFullNameWithoutTag()]; ok { + if appImg, ok := appImgs[img.ImageName]; ok { i := *appImg i.ImageAlias = img.ImageAlias images = append(images, &i)