RamenDR / ramen

Apache License 2.0
72 stars 52 forks source link

Delete manifestwork for application namespace #1381

Open abhijeet219 opened 3 months ago

abhijeet219 commented 3 months ago

Changes:

The changeset includes a new DeleteNamespaceManifestWork() func to delete the manifestwork for namespace. It first checks if the mw.Spec has delete option or if it already has a DeletionTimestamp. Accordingly, it proceeds to delete the namespace manifestwork. Also introduces updating of the namespace manifestwork with the deleteOption and propogationPolicy of type orphan, whenever the createOrUpdateNamespaceManifest() func is called.

Fixes: Bug 2059669