-
Notifications
You must be signed in to change notification settings - Fork 87
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
RFC: wait for deletion of namespaces #318
base: main
Are you sure you want to change the base?
RFC: wait for deletion of namespaces #318
Conversation
84abcbe
to
40f87ea
Compare
Signed-off-by: Michael Hoffmann <[email protected]>
40f87ea
to
a67b76d
Compare
…he cluster and still clean up finalizers
hey @mhoffm-aiven, thanks for the PR. I'm curious around the motivation... I could see value in certain circumstances but a nuisance in others. generally a test is in a namespace and is deleted after that test, followed by another test in another namespace. It is common to not care when the namespace removal is complete. If we should optionally care, it seems like it should be configurable (and likely at the test level). It seems like there would be value in creating a KEP with acceptance criteria and use case. Could we get the use-case you are targetting? |
it also seems valuable to control timeouts around the wait |
That should be controlled by the context now. |
Hey @kensipe, First of all, thanks for looking into the PR! I'm trying to test a controller that needs to clean up finalizers before the namespace can be deleted ( if it does not it will cause the namespace deletion to hang ), the problem now is that when i run the controller out of cluster as a Should there be an error in your reconcile logic where finalizers are not removed for some reason, the test will fail, so it also strengthens the tests. Not killing it is probably no solution because the controller cannot know if some deletions are still queued so it cannot wait itself for a warm shutdown. I think that making it configurable (maybe a |
yeah.. sorry for delays. I'm aligned with the last message posted here. I will review the details later today. |
oh... @mhoffm-aiven the changes don't appear to be here... you were looking to talk it thru. I'm aligned with a configurable option. Do you plan to add that to this PR? |
Hey @kensipe I have not changed anything yet! If the changes sound good to you, i will implement them shortly though! |
Signed-off-by: Michael Hoffmann <[email protected]>
bbe7e13
to
b111734
Compare
Hey @kensipe I made the blocking deletion configurable. What do you think? |
Hey @kensipe, Is there something to be done still? |
shame on me... apologies. I will dig into this today. and thanks so much! |
a quick pass looks good. I will take a deeper look later today |
Hey @kensipe , No worries! Thanks for looking into it! |
@mhoffm-aiven ok... thanks for the ping and for think time. my initial hesitant was on the name "block" vs "wait"... then landed on the crux of the issue. what would you think of a |
Hey @kensipe bounding the wait time seems like a good thing to do, lets go with your suggestions, to summarize:
If you agree i would see when i can find some time to implement it, probably on the weekend though! |
@mhoffm-aiven love it |
I would like to include this into the next release. we will wait for the updates for it's inclusion. |
What this PR does / why we need it:
Fixes #314