Make nested groups deletion synchronous to avoid potential race
There may be a potential race condition in the group deletion. Suppose there is a namespace test
with nested group foo
:
- Namespace
test
is queued for deletion - Namespace
test
schedulesfoo
for deletion - Namespace
test
is destroyed - Namespace
foo
finds no parent, so it may fail
Didn't have time to write a spec for this, but I wanted to raise this as a potential issue.