Skip to content

Commit

Permalink
Update image mapping in GetImagesFromApplication function
Browse files Browse the repository at this point in the history
  • Loading branch information
burnb committed Jan 18, 2024
1 parent 9fa1bed commit 3dedb89
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pkg/argocd/argocd.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 3dedb89

Please sign in to comment.