kuttl icon indicating copy to clipboard operation
kuttl copied to clipboard

Namespace deletion timeout explicit option for kuttl

Open cap1984 opened this issue 3 years ago • 8 comments

What would you like to be added: namespace deletion specific timeout argument

Why is this needed: The latest 0.15.0 release has been introduced the strict namespace removal policy which I prefer very much. However, since it's not a part of any TestStep, we have to use TestSuite wide timeout parameter and it's not the perfect use-case to follow. I believe more granular control for namespace removal action is a way to go further. Thanks.

cap1984 avatar Jan 10 '23 08:01 cap1984

I like this request. It can be really useful for tests where a lot of stuff is created.

iblancasa avatar Jan 10 '23 09:01 iblancasa

Aren’t created resources removed individually ? If so the namespace removal should not be long.

eddycharly avatar Jan 13 '23 22:01 eddycharly

Aren’t created resources removed individually ? If so the namespace removal should not be long.

Nope, as a user I just want to remove all created resources at once without any extra efforts.

cap1984 avatar Jan 24 '23 17:01 cap1984

This is especially problematic when using finalizers.

eddycharly avatar Jan 24 '23 17:01 eddycharly

This is especially problematic when using finalizers.

That is why I dropping them on the last step :D

cap1984 avatar Jan 24 '23 19:01 cap1984

But it won't work =)

eddycharly avatar Jan 24 '23 19:01 eddycharly

How would a resource using a finaliser be deleted if the controller pod is no more...

eddycharly avatar Jan 24 '23 19:01 eddycharly

How would a resource using a finaliser be deleted if the controller pod is no more...

In our case it does work - once finalizer is dropped from custom resource object, kubernetes is free to remove the underlaying statefulset with pods. Controller (operator) is being wiped out with other payload without any issues.

cap1984 avatar Jan 24 '23 19:01 cap1984