Open e-minguez opened 4 years ago
Currently the automated provisioning and the import existing cluster processes will create a namespace in the HUB with the exact name you gave the managed cluster... This is done so that RBAC controls can be used to "secure" the cluster namespace in the HUB. This script does make the assumption that the cluster namespace in the hub does match exactly the cluster name of the managed cluster by design.
Describe the bug
The uninstall script assumes the clustername = namespace https://github.com/open-cluster-management/deploy/blob/master/clean-clusters.sh#L41
But if it doesn't, the cluster is not deleted (the namespace is deleted)
To Reproduce Steps to reproduce the behavior:
Expected behavior The proper namespace should be deleted
Screenshots N/A
Desktop (please complete the following information):
Additional context Add any other context about the problem here.