Fix owner reference conflict

Signed-off-by: hongming <talonwan@yunify.com>
This commit is contained in:
hongming
2021-04-01 12:00:52 +08:00
parent b7f0ce44f2
commit f23771b3eb
5 changed files with 486 additions and 5 deletions

View File

@@ -84,11 +84,6 @@ func (r *Reconciler) Reconcile(req ctrl.Request) (ctrl.Result, error) {
return ctrl.Result{}, client.IgnoreNotFound(err)
}
// controlled kubefed-controller-manager
if workspace.Labels[constants.KubefedManagedLabel] == "true" {
return ctrl.Result{}, nil
}
// name of your custom finalizer
finalizer := "finalizers.tenant.kubesphere.io"