Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions controllers/volumehandler/volumehandler.go
Original file line number Diff line number Diff line change
Expand Up @@ -301,6 +301,15 @@
}
return nil, nil
}
logger.V(1).Info("snapshot content is bound")
if snap.Status.ReadyToUse != nil && !*snap.Status.ReadyToUse {
// readyToUse is set to false for this volume snapshot
logger.V(1).Info("waiting for snapshot to be ready")
return nil, nil
}

Check warning on line 309 in controllers/volumehandler/volumehandler.go

View check run for this annotation

Codecov / codecov/patch

controllers/volumehandler/volumehandler.go#L306-L309

Added lines #L306 - L309 were not covered by tests
logger.V(1).Info("snapshot is ready to use")
// status.readyToUse either is not set by the driver at this point (even though
// status.BoundVolumeSnapshotContentName is set), or readyToUse=true

return snap, nil
}
Expand Down
Loading