kind: CustomResourceDefinition
[root@bogon deploy]# grep 'kind: CustomResourceDefinition' -rn * cluster.karmada.io_clusters.yaml:4:kind: CustomResourceDefinition multicluster.x-k8s.io_serviceexports.yaml:15:kind: CustomResourceDefinition multicluster.x-k8s.io_serviceimports.yaml:15:kind: CustomResourceDefinition policy.karmada.io_clusteroverridepolicies.yaml:4:kind: CustomResourceDefinition policy.karmada.io_clusterpropagationpolicies.yaml:4:kind: CustomResourceDefinition policy.karmada.io_overridepolicies.yaml:4:kind: CustomResourceDefinition policy.karmada.io_propagationpolicies.yaml:4:kind: CustomResourceDefinition policy.karmada.io_replicaschedulingpolicies.yaml:4:kind: CustomResourceDefinition work.karmada.io_clusterresourcebindings.yaml:4:kind: CustomResourceDefinition work.karmada.io_resourcebindings.yaml:4:kind: CustomResourceDefinition work.karmada.io_works.yaml:4:kind: CustomResourceDefinition [root@bogon deploy]#
scheme.AddKnownTypes(
// Adds the list of known types to Scheme. func addKnownTypes(scheme *runtime.Scheme) error { scheme.AddKnownTypes(SchemeGroupVersion, &Cluster{}, &ClusterList{}, ) // AddToGroupVersion allows the serialization of client types like ListOptions. v1.AddToGroupVersion(scheme, SchemeGroupVersion) return nil }
原文地址:https://www.cnblogs.com/dream397/p/15177061.html
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。