Skip to content
Merged
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
17 changes: 0 additions & 17 deletions ocp_resources/datavolume.py
Original file line number Diff line number Diff line change
Expand Up @@ -259,23 +259,6 @@ def wait_deleted(self, timeout=TIMEOUT_4MINUTES):
super().wait_deleted(timeout=timeout)
return self.pvc.wait_deleted(timeout=timeout)

def wait(self, timeout=TIMEOUT_10MINUTES, failure_timeout=TIMEOUT_2MINUTES, wait_for_exists_only=False, sleep=1):
Comment thread
qodo-code-review[bot] marked this conversation as resolved.
Resolved
warn(
message="DataVolume.wait() is deprecated and will be removed in "
"the next version. Use wait_for_dv_success() instead.",
Comment thread
qodo-code-review[bot] marked this conversation as resolved.
Resolved
category=DeprecationWarning,
stacklevel=2,
)
if wait_for_exists_only:
return super().wait(timeout=timeout, sleep=sleep)
else:
self._check_none_pending_status(failure_timeout=failure_timeout)

# If DV's status is not Pending, continue with the flow
self.wait_for_status(status=self.Status.SUCCEEDED, timeout=timeout)
self.pvc.wait_for_status(status=PersistentVolumeClaim.Status.BOUND, timeout=timeout)
return None

@property
def pvc(self):
return PersistentVolumeClaim(
Expand Down