-
Notifications
You must be signed in to change notification settings - Fork 94
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Enhance the managedCluster deletion process #140
Comments
I think we need to consider several different use cases:
|
Signed-off-by: Wei Liu <liuweixa@redhat.com>
When a ManagedCluster is deleted, don't attempt to update the DNSPolicy straight away. Instead, reconcile the Gateway first, which will trigger a DNSPolicy reconcile if there are any changes related to placement changes e.g. IPAddresses changing. When a ManagedCluster is deleted, don't wait for the grace period before deleting a Gateway (via ManifestWork). Instead, delete the ManifestWork straight away. Due to a known issue in OCM, open-cluster-management-io/ocm#140 the ManifestWork is not removed after the deletionTimestamp is added in this sceanrio. To allow for this, the gateway placement logic will filter out any ManifestWork resources that have a deletionTimestamp set.
When a ManagedCluster is deleted, don't attempt to update the DNSPolicy straight away. Instead, reconcile the Gateway first, which will trigger a DNSPolicy reconcile if there are any changes related to placement changes e.g. IPAddresses changing. When a ManagedCluster is deleted, don't wait for the grace period before deleting a Gateway (via ManifestWork). Instead, delete the ManifestWork straight away. Due to a known issue in OCM, open-cluster-management-io/ocm#140 the ManifestWork is not removed after the deletionTimestamp is added in this sceanrio. To allow for this, the gateway placement logic will filter out any ManifestWork resources that have a deletionTimestamp set.
This issue is stale because it has been open for 120 days with no activity. After 14 days of inactivity, it will be closed. Remove the |
@zhiweiyin318 I think this is completed. |
added a featureGate |
Describe the enhancement
currently we need to clean up the addons and manifestworks before delete managedCluster manually, so we need to refactor the deletion process of the managedCluster to make it easy to clean up the related resources.
The text was updated successfully, but these errors were encountered: