![如何检查我的 Kubernetes 集群中是否存在损坏的 OwnerRef?](https://linux22.com/image/788668/%E5%A6%82%E4%BD%95%E6%A3%80%E6%9F%A5%E6%88%91%E7%9A%84%20Kubernetes%20%E9%9B%86%E7%BE%A4%E4%B8%AD%E6%98%AF%E5%90%A6%E5%AD%98%E5%9C%A8%E6%8D%9F%E5%9D%8F%E7%9A%84%20OwnerRef%EF%BC%9F.png)
clusterctl move
我们在(cluster api)方面遇到了问题。
clusterctl -n org-foo move --to-kubeconfig=.kubeconfigs/.foo-1-kubeconfig
Performing move...
Discovering Cluster API objects
Error: failed to get object graph: failed to check for provisioned infrastructure: action failed after 9 attempts: error reading Cluster /: an empty namespace may not be set when a resource name is provided
make: *** [Makefile:167: create-cluster-from-cluster-yaml] Error 1
原因是ownerRef 已过时。
有没有办法检查集群中的所有对象并报告所有损坏的 OwnerRefs?