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
}

 

上一篇:KubeVela 上手|让云端应用交付更加丝滑


下一篇:KubeVela 上手(1)|让云端应用交付更加丝滑