其他分享
首页 > 其他分享> > k8s CustomResource

k8s CustomResource

作者:互联网

 

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
}

 

标签:kind,CustomResource,CustomResourceDefinition,yaml,io,policy,karmada,k8s
来源: https://www.cnblogs.com/dream397/p/15177061.html