apiVersion: apiextensions.k8s.io/v1
kind: CustomResourceDefinition
metadata:
  annotations:
    controller-gen.kubebuilder.io/version: v0.4.1
  creationTimestamp: null
  labels:
    control-plane: odfmo-controller-manager
  name: mirrorpeers.multicluster.odf.openshift.io
spec:
  group: multicluster.odf.openshift.io
  names:
    kind: MirrorPeer
    listKind: MirrorPeerList
    plural: mirrorpeers
    singular: mirrorpeer
  scope: Cluster
  versions:
  - name: v1alpha1
    schema:
      openAPIV3Schema:
        description: MirrorPeer is the Schema for the mirrorpeers API
        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: MirrorPeerSpec defines the desired state of MirrorPeer
            properties:
              items:
                items:
                  description: PeerRef holds a reference to a mirror peer
                  properties:
                    clusterName:
                      description: ClusterName is the name of ManagedCluster. ManagedCluster
                        matching this name is considered a peer cluster.
                      type: string
                    storageClusterRef:
                      description: StorageClusterRef holds a reference to StorageCluster
                        object
                      properties:
                        name:
                          type: string
                        namespace:
                          type: string
                      required:
                      - name
                      - namespace
                      type: object
                  required:
                  - clusterName
                  - storageClusterRef
                  type: object
                maxItems: 2
                minItems: 2
                type: array
            required:
            - items
            type: object
          status:
            description: MirrorPeerStatus defines the observed state of MirrorPeer
            properties:
              message:
                type: string
              phase:
                type: string
            type: object
        type: object
    served: true
    storage: true
    subresources:
      status: {}
status:
  acceptedNames:
    kind: ""
    plural: ""
  conditions: []
  storedVersions: []
