apiVersion: apiextensions.k8s.io/v1beta1
kind: CustomResourceDefinition
metadata:
  name: clusterclaims.cluster.open-cluster-management.io
spec:
  group: cluster.open-cluster-management.io
  names:
    kind: ClusterClaim
    listKind: ClusterClaimList
    plural: clusterclaims
    singular: clusterclaim
  scope: Cluster
  preserveUnknownFields: false
  validation:
    openAPIV3Schema:
      description: ClusterClaim represents cluster information that a managed cluster
        claims ClusterClaims with well known names include,   1. id.k8s.io, it contains
        a unique identifier for the cluster.   2. clusterset.k8s.io, it contains an
        identifier that relates the cluster      to the ClusterSet in which it belongs.
        ClusterClaims created on a managed cluster will be collected and saved into
        the status of the corresponding ManagedCluster on hub.
      type: object
      properties:
        apiVersion:
          description: 'APIVersion defines the versioned schema of this representation
            of an object. Servers should convert recognized schemas to the latest
            internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources'
          type: string
        kind:
          description: 'Kind is a string value representing the REST resource this
            object represents. Servers may infer this from the endpoint the client
            submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds'
          type: string
        metadata:
          type: object
        spec:
          description: Spec defines the attributes of the ClusterClaim.
          type: object
          properties:
            value:
              description: Value is a claim-dependent string
              type: string
              maxLength: 1024
              minLength: 1
  version: v1alpha1
  versions:
  - name: v1alpha1
    served: true
    storage: true
status:
  acceptedNames:
    kind: ""
    plural: ""
  conditions: []
  storedVersions: []
