Closed SOF3 closed 1 year ago
Thanks for ur feedback! The garbage collection mechanism for tenant's cluster-scope resources is not perfect. We will improve this and please feel free to contribute it.
To address this, the tenant controller needs to delete all kinds of cluster-scoped resources when a tenant is deleted.
Considering there are 20+ kinds of cluster-scoped resources, I think maybe we can delete some common ones:
To delete cluster-scoped resources, we can
WDYT? /cc @Silverglass
What happened?
After tenant deletion, the ValidatingWebhookConfiguration remains present.
What did you expect to happen?
The ValidatingWebhookConfiguration should be deleted since the client no longer exists. Otherwise, this may cause problems when a tenant with the same name is created again.
How can we reproduce it (as minimally and precisely as possible)?
Following manually-setup.md up to
kubectl apply -f sample_tenant.yaml
.Software version
docker.io/kubezoo/kubezoo:v0.1.0