kubestellar / kubeflex

A flexible and scalable platform for running Kubernetes control plane APIs.
Apache License 2.0
46 stars 13 forks source link

bug: The DB table for a control plane is not deleted on the shared DB when a control plane is deleted #95

Closed pdettori closed 10 months ago

pdettori commented 11 months ago

Describe the bug

If a control plane is deleted and then re-created, it re-use the existing corresponding shared DB table, therefore it may keep unwanted configurations from the old control plane.

Steps To Reproduce

  1. Create new CP (of type k8s)
  2. Create a namespace on it
  3. Delete the cp
  4. Re-create the cp with the same name
  5. Check the namespace created on the old control plane is still there

Expected Behavior

The control plane should start from a clean state DB table.

Additional Context

No response