File tree Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -490,13 +490,14 @@ func GetImagesFromApplication(app *v1alpha1.Application) image.ContainerImageLis
490
490
appImgs := make (map [string ]* image.ContainerImage , len (app .Status .Summary .Images ))
491
491
for _ , imageStr := range app .Status .Summary .Images {
492
492
img := image .NewFromIdentifier (imageStr )
493
- appImgs [img .ImageName ] = img
493
+ appImgs [img .GetFullNameWithoutTag () ] = img
494
494
}
495
495
496
496
for _ , img := range * imagesFromAnnotations {
497
- if appImg , ok := appImgs [img .ImageName ]; ok {
498
- appImg .ImageAlias = img .ImageAlias
499
- images = append (images , appImg )
497
+ if appImg , ok := appImgs [img .GetFullNameWithoutTag ()]; ok {
498
+ i := * appImg
499
+ i .ImageAlias = img .ImageAlias
500
+ images = append (images , & i )
500
501
}
501
502
}
502
503
You can’t perform that action at this time.
0 commit comments