Merge pull request #845 from mrlihanbo/bugfix-cluster-status

collect status even if cluster's deletionTimestamp is not zero
This commit is contained in:
karmada-bot 2021-10-22 09:19:09 +08:00 committed by GitHub
commit 765f0b4b04
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 0 additions and 4 deletions

View File

@ -95,10 +95,6 @@ func (c *ClusterStatusController) Reconcile(ctx context.Context, req controllerr
return controllerruntime.Result{Requeue: true}, err
}
if !cluster.DeletionTimestamp.IsZero() {
return controllerruntime.Result{}, nil
}
// start syncing status only when the finalizer is present on the given Cluster to
// avoid conflict with cluster controller.
if !controllerutil.ContainsFinalizer(cluster, util.ClusterControllerFinalizer) {