@@ -240,10 +240,10 @@ func (r *HelmChartReconciler) reconcileFromHelmRepository(ctx context.Context,
240240 // Return early if the revision is still the same as the current artifact
241241 artifact := r .Storage .NewArtifactFor (chart .Kind , chart .GetObjectMeta (), cv .Version ,
242242 fmt .Sprintf ("%s-%s.tgz" , cv .Name , cv .Version ))
243- if ! force && repository .GetArtifact () != nil && repository . GetArtifact () .Revision == cv . Version {
243+ if ! force && repository .GetArtifact (). HasRevision ( artifact .Revision ) {
244244 if artifact .URL != repository .GetArtifact ().URL {
245245 r .Storage .SetArtifactURL (chart .GetArtifact ())
246- repository .Status .URL = r .Storage .SetHostname (chart .Status .URL )
246+ chart .Status .URL = r .Storage .SetHostname (chart .Status .URL )
247247 }
248248 return chart , nil
249249 }
@@ -434,7 +434,7 @@ func (r *HelmChartReconciler) reconcileFromTarballArtifact(ctx context.Context,
434434 // Return early if the revision is still the same as the current chart artifact
435435 chartArtifact := r .Storage .NewArtifactFor (chart .Kind , chart .ObjectMeta .GetObjectMeta (), chartMetadata .Version ,
436436 fmt .Sprintf ("%s-%s.tgz" , chartMetadata .Name , chartMetadata .Version ))
437- if ! force && chart .GetArtifact () != nil && chart . GetArtifact () .Revision == chartMetadata . Version {
437+ if ! force && chart .GetArtifact (). HasRevision ( chartArtifact .Revision ) {
438438 if chartArtifact .URL != artifact .URL {
439439 r .Storage .SetArtifactURL (& chartArtifact )
440440 chart .Status .URL = r .Storage .SetHostname (chart .Status .URL )
0 commit comments