sylva-units: delete-workload-cluster fixes
What does this MR do and why?
Brings few fixes to delete-workload-cluster webhook:
-
avoid pruning remote resources: as we don't wait for kustomizations targeting remote cluster to be deleted, we may delete workload cluster unit (and its secret) too fast, consequently flux will fail to prune remote resources and associated kustomizations.
-
Wait for kustomization to be deleted in delete-workload-cluster: Even if it will not fundamentally change the behavior of the script,
it is probably safer to wait for kustomizations to be deleted.
Closes: #1216 (closed)
Edited by Francois Eleouet