@@ -680,6 +680,10 @@ func GetDynamicSnapshotContentNameForGroupSnapshot(groupSnapshot *crdv1beta1.Vol
680680// If the VolumeSnapshotContent object still contains other changes after this sanitization, the changes 
681681// are potentially meaningful and the object is enqueued to be considered for syncing 
682682func  ShouldEnqueueContentChange (old  * crdv1.VolumeSnapshotContent , new  * crdv1.VolumeSnapshotContent ) bool  {
683+ 	// Always enqueue resyncs, which show up as an update with no change (thus no new version) 
684+ 	if  old .ResourceVersion  ==  new .ResourceVersion  {
685+ 		return  true 
686+ 	}
683687	sanitized  :=  new .DeepCopy ()
684688	// ResourceVersion always changes between revisions 
685689	sanitized .ResourceVersion  =  old .ResourceVersion 
@@ -693,7 +697,7 @@ func ShouldEnqueueContentChange(old *crdv1.VolumeSnapshotContent, new *crdv1.Vol
693697		if  sanitized .Annotations  ==  nil  {
694698			sanitized .Annotations  =  map [string ]string {}
695699		}
696- 		for  annotation ,  _  :=  range  sidecarControlledContentAnnotations  {
700+ 		for  annotation  :=  range  sidecarControlledContentAnnotations  {
697701			if  value , ok  :=  old .Annotations [annotation ]; ok  {
698702				sanitized .Annotations [annotation ] =  value 
699703			} else  {
@@ -702,7 +706,7 @@ func ShouldEnqueueContentChange(old *crdv1.VolumeSnapshotContent, new *crdv1.Vol
702706		}
703707	} else  {
704708		// Old content has no annotations, so delete any sidecar-controlled annotations present on the new content 
705- 		for  annotation ,  _  :=  range  sidecarControlledContentAnnotations  {
709+ 		for  annotation  :=  range  sidecarControlledContentAnnotations  {
706710			delete (sanitized .Annotations , annotation )
707711		}
708712	}
0 commit comments