---
apiVersion: apiextensions.k8s.io/v1
kind: CustomResourceDefinition
metadata:
  annotations:
    controller-gen.kubebuilder.io/version: v0.16.3
  name: dmproviders.eks.infra.pingcap.com
spec:
  group: eks.infra.pingcap.com
  names:
    kind: DMProvider
    listKind: DMProviderList
    plural: dmproviders
    singular: dmprovider
  scope: Cluster
  versions:
  - name: v1alpha1
    schema:
      openAPIV3Schema:
        type: object
        description: DMProvider is the Schema for the dmproviders 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:
            properties:
              masterSpecs:
                type: object
                additionalProperties:
                  type: object
                  properties:
                    specCode:
                      type: string
                    memberType:
                      type: string
                    allocateStrategy:
                      type: string
                    instanceType:
                      properties:
                        arch:
                          type: string
                        cpu:
                          anyOf:
                          - type: integer
                          - type: string
                          pattern: ^(\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))(([KMGTPE]i)|[numkMGTPE]|([eE](\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))))?$
                          x-kubernetes-int-or-string: true
                        memory:
                          anyOf:
                          - type: integer
                          - type: string
                          pattern: ^(\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))(([KMGTPE]i)|[numkMGTPE]|([eE](\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))))?$
                          x-kubernetes-int-or-string: true
                        name:
                          type: string
                      type: object
                    instanceNumber:
                      type: integer
                    storageClass:
                      properties:
                        iops:
                          type: integer
                        name:
                          type: string
                        throughput:
                          description: Throughput in MiB/s. Only effective when gp3
                            volume type is specified.
                          type: integer
                        type:
                          type: string
                      type: object
                    storageSize:
                      anyOf:
                      - type: integer
                      - type: string
                      pattern: ^(\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))(([KMGTPE]i)|[numkMGTPE]|([eE](\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))))?$
                      x-kubernetes-int-or-string: true
                    systemVolumeSize:
                      type: string
                description: MasterSpec is the spec of the master.
              workerSpecs:
                type: object
                additionalProperties:
                  type: object
                  properties:
                    specCode:
                      type: string
                    memberType:
                      type: string
                    allocateStrategy:
                      type: string
                    instanceType:
                      properties:
                        arch:
                          type: string
                        cpu:
                          anyOf:
                          - type: integer
                          - type: string
                          pattern: ^(\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))(([KMGTPE]i)|[numkMGTPE]|([eE](\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))))?$
                          x-kubernetes-int-or-string: true
                        memory:
                          anyOf:
                          - type: integer
                          - type: string
                          pattern: ^(\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))(([KMGTPE]i)|[numkMGTPE]|([eE](\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))))?$
                          x-kubernetes-int-or-string: true
                        name:
                          type: string
                      type: object
                    instanceNumber:
                      type: integer
                    storageClass:
                      properties:
                        iops:
                          type: integer
                        name:
                          type: string
                        throughput:
                          description: Throughput in MiB/s. Only effective when gp3
                            volume type is specified.
                          type: integer
                        type:
                          type: string
                      type: object
                    storageSize:
                      anyOf:
                      - type: integer
                      - type: string
                      pattern: ^(\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))(([KMGTPE]i)|[numkMGTPE]|([eE](\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))))?$
                      x-kubernetes-int-or-string: true
                    systemVolumeSize:
                      type: string
                description: WorkerSpec is the spec of the worker.
            type: object
          status:
            type: object
    served: true
    storage: true
    subresources:
      status: {}
