{
  "description": "ClusterRegistration is used internally by Fleet and should not be used directly.",
  "properties": {
    "apiVersion": {
      "description": "APIVersion defines the versioned schema of this representation of an object.\nServers should convert recognized schemas to the latest internal value, and\nmay reject unrecognized values.\nMore 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.\nServers may infer this from the endpoint the client submits requests to.\nCannot be updated.\nIn CamelCase.\nMore info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds",
      "type": "string"
    },
    "metadata": {
      "type": "object"
    },
    "spec": {
      "properties": {
        "clientID": {
          "description": "ClientID is a unique string that will identify the cluster. The\nagent either uses the configured ID or the kubeSystem.UID.",
          "nullable": true,
          "type": "string"
        },
        "clientRandom": {
          "description": "ClientRandom is a random string that the agent generates. When\nfleet-controller grants a registration, it creates a registration\nsecret with this string in the name.",
          "nullable": true,
          "type": "string"
        },
        "clusterLabels": {
          "additionalProperties": {
            "type": "string"
          },
          "description": "ClusterLabels are copied to the cluster resource during the registration.",
          "nullable": true,
          "type": "object"
        }
      },
      "type": "object"
    },
    "status": {
      "properties": {
        "clusterName": {
          "description": "ClusterName is only set after the registration is being processed by\nfleet-controller.",
          "nullable": true,
          "type": "string"
        },
        "granted": {
          "description": "Granted is set to true, if the request service account is present\nand its token secret exists. This happens directly before creating\nthe registration secret, roles and rolebindings.",
          "type": "boolean"
        }
      },
      "type": "object"
    }
  },
  "type": "object",
  "$schema": "http://json-schema.org/draft-07/schema#",
  "title": "ClusterRegistration v1alpha1"
}