apiVersion: apiextensions.k8s.io/v1
kind: CustomResourceDefinition
metadata:
  name: managementclusters.operator.tigera.io
spec:
  group: operator.tigera.io
  names:
    kind: ManagementCluster
    listKind: ManagementClusterList
    plural: managementclusters
    singular: managementcluster
  scope: Cluster
  versions:
    - name: v1
      schema:
        openAPIV3Schema:
          description:
            The presence of ManagementCluster in your cluster, will configure
            it to be the management plane to which managed clusters can connect. At
            most one instance of this resource is supported. It must be named "tigera-secure".
          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: ManagementClusterSpec defines the desired state of a ManagementCluster
              properties:
                address:
                  description:
                    'This field specifies the externally reachable address
                    to which your managed cluster will connect. When a managed cluster
                    is added, this field is used to populate an easy-to-apply manifest
                    that will connect both clusters. Valid examples are: "0.0.0.0:31000",
                    "example.com:32000", "[::1]:32500"'
                  type: string
              type: object
          type: object
      served: true
      storage: true
      subresources:
        status: {}
