-
Notifications
You must be signed in to change notification settings - Fork 1.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ensure delete returns only when the delete operation is fully finished #3246
Comments
Related to #1474 |
client.batch().v1().jobs()
.inNamespace(namespace)
.withName(name)
.waitUntilCondition(Objects::isNull, 10, TimeUnit.SECONDS); |
There's a different behavior between what the REST API does when performing a deletion with the foreground propagation policy and what When you perform a However, when you perform the same operation using the REST API (with Your suggestion is exactly what you need to do if you really need to provide blocking until the resource was effectively deleted. |
@manusa I understand. It makes sense indeed, thank you for the explanation, I will continue with my solution then! |
Hi,
If I'm calling delete on a job for example, it takes time for the operation to really finish, but the delete call returns early, even if I used the FOREGROUND DeletionPropagation (not sure it's really linked to the matter ^^).
It would make sense to add an option so that the call only returns when everything is deleted as expected. A bit like the
--wait
parameter of kubectl works in that context (see kubernetes/kubernetes#42594).The text was updated successfully, but these errors were encountered: