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
}

 

k8s CustomResource

上一篇:常用工具(一)


下一篇:TF静态坐标转换