File tree Expand file tree Collapse file tree 1 file changed +9
-3
lines changed Expand file tree Collapse file tree 1 file changed +9
-3
lines changed Original file line number Diff line number Diff line change @@ -263,9 +263,9 @@ func (ctrl *csiSnapshotSideCarController) checkandUpdateContentStatusOperation(c
263
263
var groupSnapshotID string
264
264
var snapshotterListCredentials map [string ]string
265
265
266
- volumeGroupSnapshotMember := content .Status != nil && content .Status .VolumeGroupSnapshotHandle != nil
266
+ volumeGroupSnapshotMemberWithGroupSnapshotHandle := content .Status != nil && content .Status .VolumeGroupSnapshotHandle != nil
267
267
268
- if content .Spec .Source .SnapshotHandle != nil || (volumeGroupSnapshotMember && content .Status .SnapshotHandle != nil ) {
268
+ if content .Spec .Source .SnapshotHandle != nil || (volumeGroupSnapshotMemberWithGroupSnapshotHandle && content .Status .SnapshotHandle != nil ) {
269
269
klog .V (5 ).Infof ("checkandUpdateContentStatusOperation: call GetSnapshotStatus for snapshot content [%s]" , content .Name )
270
270
271
271
if content .Spec .VolumeSnapshotClassName != nil {
@@ -315,7 +315,13 @@ func (ctrl *csiSnapshotSideCarController) checkandUpdateContentStatusOperation(c
315
315
}
316
316
return updatedContent , nil
317
317
}
318
- return ctrl .createSnapshotWrapper (content )
318
+
319
+ _ , groupSnapshotMember := content .Labels [utils .VolumeGroupSnapshotHandleLabel ]
320
+ if ! groupSnapshotMember {
321
+ return ctrl .createSnapshotWrapper (content )
322
+ }
323
+
324
+ return content , nil
319
325
}
320
326
321
327
// This is a wrapper function for the snapshot creation process.
You can’t perform that action at this time.
0 commit comments