Closed cchen-vertica closed 5 months ago
Create a separate Jira(VER-94063) to verify if we can move a subcluster between sandboxes. I think it can work with current design. If we have sc1 in sandbox1, and sc2 in sandbox2. If we switch the subclusters in the sandboxes, sc1 and sc2 will be recorded in config maps by vdb unsandbox reconciler, then sandbox controller will unsandbox them. The vdb will be updated after unsandbox operation which will trigger another round of vdb reconciliation. In the new round, vdb restart reconciler and vdb sandbox reconciler should be able to sandbox sc1 and sc2 correctly.
@cchen-vertica you can pull vnext to get latest vclusterOps. I already merged it into vnext
This PR added two unsandbox reconcilers: one in vdb controller and the other in sandbox controller. The one in vdb controller will update sandbox config map for triggering sandbox controller. The one in sandbox controller will call vclusterOps to unsandbox the subclusters, update vdb sandbox status, and delete the config map. After that, the restart reconciler in vdb controller should restart the nodes that have been unsandboxed.