Closed ymmt2005 closed 3 years ago
Describe the bug
Due to a bug in kube-apiserver, although there are still AddressBlocks curved from an AddressPool, the AddressPool would be deleted even though AddressBlock has ownerReferences with blockOwnerDeletion=true.
https://github.com/kubernetes/kubernetes/issues/86509#issuecomment-601188296
So, AddressPool should have a finalizer until all of its child AddressBlocks get deleted.
Environments
To Reproduce Steps to reproduce the behavior:
Expected behavior A clear and concise description of what you expected to happen.
Additional context Add any other context about the problem here.
maybe fixed in k8s 1.20?
Describe the bug
Due to a bug in kube-apiserver, although there are still AddressBlocks curved from an AddressPool, the AddressPool would be deleted even though AddressBlock has ownerReferences with blockOwnerDeletion=true.
https://github.com/kubernetes/kubernetes/issues/86509#issuecomment-601188296
So, AddressPool should have a finalizer until all of its child AddressBlocks get deleted.
Environments
To Reproduce Steps to reproduce the behavior:
Expected behavior A clear and concise description of what you expected to happen.
Additional context Add any other context about the problem here.