infinite reconciling loop between kubefed namespace controller and ks namespace controller
Created by: swiftslee
Describe the Bug
Ks ns controller will add ownerReference field to a ns if the ns has label such as kubesphere.io/workspace: xccc. However, if the ns is created by kubefed(e.g. federatednamespace), the kubefed ns controller will remove the ownerReference field. In this situation, it can cause competition between the two controllers. Finally, we can not create federatednamespace anymore.
Versions Used KubeSphere: latest
How To Reproduce Steps to reproduce the behavior:
- create a multi-cluster-project that contains
hostcluster. - create another multi-cluster-project contains
hostandmembercluster. - can not create ns in the
membercluster.
Expected behavior
The ns should be created in the member cluster.