@@ -474,22 +474,22 @@ func marshalHelmOverride(app *v1alpha1.Application, originalData []byte) (overri
474
474
return nil , unmarshalErr
475
475
}
476
476
477
- for _ , c := range images {
478
- if c .ImageAlias == "" {
477
+ for _ , img := range images {
478
+ if img .ImageAlias == "" {
479
479
continue
480
480
}
481
481
482
- helmAnnotationParamName , helmAnnotationParamVersion := getHelmParamNamesFromAnnotation (app .Annotations , c )
482
+ helmAnnotationParamName , helmAnnotationParamVersion := getHelmParamNamesFromAnnotation (app .Annotations , img )
483
483
484
484
if helmAnnotationParamName == "" {
485
- return nil , fmt .Errorf ("could not find an image-name annotation for image %s" , c .ImageName )
485
+ return nil , fmt .Errorf ("could not find an image-name annotation for image %s" , img .ImageName )
486
486
}
487
487
// for image-spec annotation, helmAnnotationParamName holds image-spec annotation value,
488
488
// and helmAnnotationParamVersion is empty
489
489
if helmAnnotationParamVersion == "" {
490
- if c .GetParameterHelmImageSpec (app .Annotations , common .ImageUpdaterAnnotationPrefix ) == "" {
490
+ if img .GetParameterHelmImageSpec (app .Annotations , common .ImageUpdaterAnnotationPrefix ) == "" {
491
491
// not a full image-spec, so image-tag is required
492
- return nil , fmt .Errorf ("could not find an image-tag annotation for image %s" , c .ImageName )
492
+ return nil , fmt .Errorf ("could not find an image-tag annotation for image %s" , img .ImageName )
493
493
}
494
494
} else {
495
495
// image-tag annotation is present, so continue to process image-tag
0 commit comments