One of my namespace is in Terminating
state.
While there are many posts that explain how to forcefully delete such namespaces. The ultimate result is that everything in your namespace will be gone. Which is not what you might want especially if that termination was a result of mistake or bug (or may cause downtime of any kind).
Is it possible to tell kubernetes not to try to delete that namespace anymore. Where that state is kept?
Terminating
state blocks me from recreating the whole stack with gitops (helm chart installation in such namespace is not possible).
I simply wish to remove the terminating
state and my fluxcd controller would fix everything else.
As far as I know, unfortunately not. Termination is a one-way process. Note how termination pods take place:
So it is impossible to cancel termination process.
There is no dedicated solution, but you can try to automate this process with custom scripts. Look at this example in Python and another one in Bash.
See also this question.