Cluster API should not use controller refs for resources that it does not create
#4,014 创建于 2020年12月11日
仓库指标
- 星标
- (4,267 个星标)
- PR 合并指标
- (PR 指标待抓取)
描述
What steps did you take and what happened:
Attempting to create a Cluster using an external tool such as Crossplane causes issues with both CAPI and Crossplane wanting to have the singular controller reference for resources that are created from Crossplane.
We've used controller refs in the past to avoid the possibility of multiple Clusters owning the same resources, but siince this hampers interoperability, the use of non-controller ownerReferences should be used and the verification that a resource isn't "owned" by the same cluster should be handled separately.
What did you expect to happen:
Crossplane should be able to create a Cluster API Cluster
Anything else you would like to add:
Anywhere that Cluster API controllers are creating resources should still continue to use controller references.
/kind bug